Annotation of /trunk/extras/adito/adito-0.9.1-r1.smage2
Parent Directory | Revision Log
Revision 1071 -
(hide annotations)
(download)
Thu Jan 22 12:16:47 2009 UTC (15 years, 8 months ago) by niro
File size: 4144 byte(s)
Thu Jan 22 12:16:47 2009 UTC (15 years, 8 months ago) by niro
File size: 4144 byte(s)
-ver bump to 0.9.1-r1
1 | niro | 1071 | # $Header: /magellan-cvs/smage/adito/adito-0.9.0-r1.smage2,v 1.1 2008/08/26 10:08:25 niro Exp $ |
2 | |||
3 | PNAME="adito" | ||
4 | PVER="0.9.1" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCATEGORIE="net-vpn" | ||
8 | STATE="unstable" | ||
9 | |||
10 | DESCRIPTION="Adito - a fork of SSL-Explorer- is a fully-featured, web-based SSL VPN server." | ||
11 | HOMEPAGE="http://sourceforge.net/projects/adito/" | ||
12 | |||
13 | # needs as runtime deps tools.jar and keytool, so a jdk is required! | ||
14 | DEPEND=">= virtual/java-jdk | ||
15 | >= dev-java/junit-4.4 | ||
16 | >= dev-java/apache-ant-1.7" | ||
17 | |||
18 | SRCFILE="${PNAME}-${PVER}-src.tar.gz" | ||
19 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
20 | |||
21 | sminclude mbuild mtools cleanutils | ||
22 | |||
23 | SRC_URI=( | ||
24 | sourceforge://${PNAME}/${SRCFILE} | ||
25 | mirror://${PNAME}/${SRCFILE} | ||
26 | mirror://${PNAME}/adito-install.sh | ||
27 | mirror://${PNAME}/adito.rc | ||
28 | ) | ||
29 | |||
30 | src_compile() | ||
31 | { | ||
32 | cd ${SRCDIR}/adito | ||
33 | |||
34 | ant compile || die | ||
35 | ant local-deploy || die | ||
36 | ant deploy-community-extensions || die | ||
37 | } | ||
38 | |||
39 | src_install() | ||
40 | { | ||
41 | cd ${SRCDIR} | ||
42 | |||
43 | local dest="/opt/adito" | ||
44 | local bindest="${BINDIR}/${dest}" | ||
45 | |||
46 | minstalldir ${dest} || die | ||
47 | # copy everything but with tar to honor dot-files | ||
48 | tar cf - * | (cd ${bindest}/; tar xvf -) || die | ||
49 | |||
50 | # now clean up | ||
51 | zapmost ${bindest}/maverick-crypto build || die | ||
52 | zapmost ${bindest}/maverick-multiplex build lib || die | ||
53 | zapmost ${bindest}/maverick-ssl build lib || die | ||
54 | zapmost ${bindest}/maverick-util build lib || die | ||
55 | zapmost ${bindest}/adito build conf db install lib serverlib store webapp || die | ||
56 | zapmost ${bindest}/adito-commons-vfs build lib || die | ||
57 | zapmost ${bindest}/adito-community-activedirectory build extensions webapp || die | ||
58 | zapmost ${bindest}/adito-community-applications build extensions webapp || die | ||
59 | zapmost ${bindest}/adito-community-network-places build extensions webapp || die | ||
60 | zapmost ${bindest}/adito-community-tunnels build extensions webapp || die | ||
61 | zapmost ${bindest}/adito-community-unix build extensions webapp || die | ||
62 | zapmost ${bindest}/adito-community-web-forwards build extensions webapp || die | ||
63 | |||
64 | mkeepdir ${dest}/adito/db || die | ||
65 | mkeepdir ${dest}/adito/logs || die | ||
66 | mkeepdir ${dest}/adito/tmp || die | ||
67 | |||
68 | # don't need the samples | ||
69 | rm -rf ${bindest}/adito-samples || die | ||
70 | |||
71 | rm -r ${bindest}/build-tools || die | ||
72 | rm -r ${bindest}/certificate || die | ||
73 | rm -r ${bindest}/commons-logging-java1 || die | ||
74 | rm -r ${bindest}/private-build-tools || die | ||
75 | rm -r ${bindest}/ui || die | ||
76 | rm ${bindest}/build.xml || die | ||
77 | rm ${bindest}/CHANGELOG || die | ||
78 | rm ${bindest}/INSTALL || die | ||
79 | rm ${bindest}/license.html || die | ||
80 | rm ${bindest}/modules.list || die | ||
81 | rm ${bindest}/README || die | ||
82 | rm ${bindest}/TODO || die | ||
83 | find ${bindest} -name .classpath | xargs rm || die | ||
84 | find ${bindest} -name .project | xargs rm || die | ||
85 | find ${bindest} -name .settings | xargs rm -rf || die | ||
86 | |||
87 | # install our install-helper script | ||
88 | minstallexec -s adito-install.sh ${dest}/adito-install || die | ||
89 | |||
90 | # install our initscript | ||
91 | zapmost ${bindest}/adito/install upgrade platforms/linux || die | ||
92 | minstallrc adito.rc adito || die | ||
93 | |||
94 | # fix installdir | ||
95 | sed -i "s:^\(ADITO_ROOT=\).*:\1${dest}:" \ | ||
96 | ${bindest}/adito-install \ | ||
97 | ${BINDIR}/etc/rc.d/init.d/adito || die | ||
98 | |||
99 | # config protect | ||
100 | minstalldir /etc/env.d || die | ||
101 | echo "CONFIG_PROTECT=${dest}/adito/conf" > ${BINDIR}/etc/env.d/50adito || die | ||
102 | echo "CONFIG_PROTECT=${dest}/adito/db" >> ${BINDIR}/etc/env.d/50adito || die | ||
103 | |||
104 | # runtime fixes - remove jars which are provided by the system | ||
105 | # tools.jar comes with jre and gets installed with adito-install | ||
106 | rm ${bindest}/adito/lib/tools.jar || die | ||
107 | |||
108 | local myarch | ||
109 | case ${ARCH} in | ||
110 | i*86) myarch=x86 ;; | ||
111 | x86_64) myarch=x86-64 ;; | ||
112 | esac | ||
113 | |||
114 | # fix wrapper config | ||
115 | sed -i -e 's:^\(wrapper.java.command=\).*:\1java:' \ | ||
116 | -e "s:^\(wrapper.working.dir=\).*:\1${dest}/adito:" \ | ||
117 | -e "s:^\(wrapper.java.library.path.1=\).*:\1${dest}/adito/install/platforms/linux/${myarch}:" \ | ||
118 | ${bindest}/adito/conf/wrapper.conf || die | ||
119 | |||
120 | # fix wrapper startup script | ||
121 | sed -i -e "s:\(.*WRAPPER_CONF=\).*:\1\"${dest}/adito/conf/wrapper.conf\":" \ | ||
122 | -e "s:\(.*PIDDIR=\).*:\1\"${dest}/audito/tmp\":" \ | ||
123 | ${bindest}/adito/install/platforms/linux/adito || die | ||
124 | } | ||
125 | |||
126 | postinstall() | ||
127 | { | ||
128 | echo | ||
129 | echo "To complete the installation please run:" | ||
130 | echo " /opt/adito/adito-install" | ||
131 | echo "and point your browser to http://127.0.0.1:28080/" | ||
132 | echo | ||
133 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |