Annotation of elwix/config/rc.3thparty_helper, revision 1.1.2.2
1.1.2.1 misho 1: #!/bin/sh
2: #
3: # (C)`14 PKG-Builder script helper for elwix by Michael Pounov <misho@elwix.org>
4: #
5: # ./rc.3thparty_helper [package] [make_tool] [prefix_dir] [build_arch_str]
6: #
1.1.2.2 ! misho 7: # $Id: rc.3thparty_helper,v 1.1.2.1 2014/01/07 08:41:30 misho Exp $
1.1.2.1 misho 8: #
9:
10: [ -r ./config/rc.elwix ] && . ./config/rc.elwix
11: if [ X"${ELWIX_IS_CONFIGURED}" != X"YES" ]; then
12: echo
13: echo "ELWIX project is not configured !?!"
14: echo
15: exit 1
16: fi
17:
18:
19: CMD=$1
20: MK=${2:-make}
21: P=${3:-/tmp/elwix}
22: B=$4
23: PFX="--prefix ${P}"
24: shift; shift; shift; shift;
25: echo ">>> Working script ${MK} into ${PFX}"
26:
27: if [ -n "${B}" ]; then
28: PFX="${PFX} --build ${B}"
29: fi
30:
31: TOP=$(pwd)
32: echo ">>> TOPDIR=${TOP}"
33:
34: if [ $P = "/tmp/elwix" ]; then
35: rm -rf /tmp/elwix
36: install -d /tmp/elwix
37: install -d /tmp/elwix/bin
38: install -d /tmp/elwix/include
39: install -d /tmp/elwix/lib
40: install -d /tmp/elwix/libexec
41: install -d /tmp/elwix/man
42: install -d /tmp/elwix/man/man1
43: install -d /tmp/elwix/man/man2
44: install -d /tmp/elwix/man/man3
45: install -d /tmp/elwix/man/man4
46: install -d /tmp/elwix/man/man5
47: install -d /tmp/elwix/man/man6
48: install -d /tmp/elwix/man/man7
49: install -d /tmp/elwix/man/man8
50: install -d /tmp/elwix/man/man9
51: install -d /tmp/elwix/sbin
52: install -d /tmp/elwix/share
53: fi
54:
55: find . -name .deps -type d -exec rm -rf {} \;
56:
57: case $CMD in
58: sudo)
1.1.2.2 ! misho 59: cd ${ADDSRC}/sudo
1.1.2.1 misho 60: ./configure --sysconfdir=/etc --libexecdir=/usr/local/libexec --with-ignore-dot \
61: --with-tty-tickets --with-env-editor --with-logincap \
62: --with-long-otp-prompt --with-pam --with-logfac=local2 \
63: --with-bsm-audit ${PFX} || exit 1
64: ${MK} clean || exit 1
65: ${MK} || exit 1
66: install src/sudo ${P}/bin || exit 1
67: ln ${P}/bin/sudo ${P}/bin/sudoedit || exit 1
68: install plugins/sudoers/sudoreplay ${P}/bin || exit 1
69: install plugins/sudoers/visudo ${P}/sbin || exit 1
70: install plugins/sudoers/.libs/sudoers.so ${P}/libexec || exit 1
71: install src/.libs/libsudo_noexec.so ${P}/libexec || exit 1
72: echo ">>> Now rebuild elwix $CMD program ..."
73: ;;
74: expat)
1.1.2.2 ! misho 75: cd ${ADDSRC}/expat
1.1.2.1 misho 76: ./configure ${PFX} || exit 1
77: ${MK} clean || exit 1
78: ${MK} || exit 1
79: ${MK} install || exit 1
80: echo ">>> Now rebuild elwix $CMD program ..."
81: ;;
82: mpd)
1.1.2.2 ! misho 83: cd ${ADDSRC}/libpdel
1.1.2.1 misho 84: ${MK} clean || exit 1
85: ${MK} || exit 1
86: find . -name \*.so\* -type f -exec install {} ${P}/lib \;
87: cd ..
1.1.2.2 ! misho 88: cd ${ADDSRC}/mpd/src
1.1.2.1 misho 89: ${MK} clean || exit 1
90: ${MK} || exit 1
91: install mpd5 ${P}/sbin || exit 1
92: echo ">>> Now rebuild elwix $CMD program ..."
93: ;;
94: libevent)
1.1.2.2 ! misho 95: cd ${ADDSRC}/libevent
1.1.2.1 misho 96: ./configure ${PFX} --mandir=${P}/man --infodir=${P}/info || exit 1
97: ${MK} clean || exit 1
98: ${MK} || exit 1
99: ${MK} install || exit 1
100: echo ">>> Now rebuild elwix $CMD program ..."
101: ;;
102: mini_sendmail)
1.1.2.2 ! misho 103: cd ${ADDSRC}/mini_sendmail
1.1.2.1 misho 104: ${MK} clean || exit 1
105: ${MK} || exit 1
106: install mini_sendmail ${P}/sbin || exit 1
107: echo ">>> Now rebuild elwix $CMD program ..."
108: ;;
109: choparp)
1.1.2.2 ! misho 110: cd ${ADDSRC}/choparp
1.1.2.1 misho 111: rm -f choparp
112: ${MK} choparp || exit 1
113: install choparp ${P}/sbin || exit 1
114: echo ">>> Now rebuild elwix $CMD program ..."
115: ;;
116: ttcp)
1.1.2.2 ! misho 117: cd ${ADDSRC}/ttcp
1.1.2.1 misho 118: rm -f ttcp
119: ${MK} ttcp || exit 1
120: install ttcp ${P}/bin || exit 1
121: echo ">>> Now rebuild elwix $CMD program ..."
122: ;;
123: trafshow)
1.1.2.2 ! misho 124: cd ${ADDSRC}/trafshow
1.1.2.1 misho 125: ./configure --sysconfdir=/etc ${PFX} || exit 1
126: ${MK} clean || exit 1
127: ${MK} || exit 1
128: ${MK} install || exit 1
129: echo ">>> Now rebuild elwix $CMD program ..."
130: ;;
131: ipsec-tools)
1.1.2.2 ! misho 132: cd ${ADDSRC}/ipsec-tools
1.1.2.1 misho 133: ./configure --enable-shared --sysconfdir=/etc/racoon --localstatedir=/var/run \
134: --enable-debug --enable-ipv6 --enable-adminport --enable-stats \
135: --enable-dpd --enable-natt=yes --enable-frag --enable-hybrid \
136: --without-libpam --disable-gssapi --with-libradius --without-libldap \
137: --disable-samode-unspec --disable-rc5 --disable-idea ${PFX} || exit 1
138: ${MK} clean || exit 1
139: ${MK} || exit 1
140: ${MK} install || exit 1
141: echo ">>> Now rebuild elwix $CMD program ..."
142: ;;
143: dhcp)
1.1.2.2 ! misho 144: cd ${ADDSRC}/dhcp
1.1.2.1 misho 145: ./configure --localstatedir=/var --enable-paranoia --enable-early-chroot \
146: --enable-dhcpv6 ${PFX} || exit 1
147: ${MK} clean || exit 1
148: ${MK} || exit 1
149: install server/dhcpd ${P}/sbin || exit 1
150: install relay/dhcrelay ${P}/sbin || exit 1
151: install dhcpctl/omshell ${P}/bin || exit 1
152: echo ">>> Now rebuild elwix $CMD program ..."
153: ;;
154: dhcping)
1.1.2.2 ! misho 155: cd ${ADDSRC}/dhcping
1.1.2.1 misho 156: ./configure ${PFX} || exit 1
157: ${MK} clean || exit 1
158: ${MK} || exit 1
159: ${MK} install || exit 1
160: echo ">>> Now rebuild elwix $CMD program ..."
161: ;;
162: mrouted)
1.1.2.2 ! misho 163: cd ${ADDSRC}/mrouted
1.1.2.1 misho 164: ${MK} clean || exit 1
165: ${MK} || exit 1
166: install map-mbone ${P}/sbin || exit 1
167: install mrinfo ${P}/sbin || exit 1
168: install mrouted ${P}/sbin || exit 1
169: install mtrace ${P}/sbin || exit 1
170: echo ">>> Now rebuild elwix $CMD program ..."
171: ;;
172: igmpproxy)
1.1.2.2 ! misho 173: cd ${ADDSRC}/igmpproxy
1.1.2.1 misho 174: ./configure ${PFX} || exit 1
175: ${MK} clean || exit 1
176: ${MK} || exit 1
177: ${MK} install || exit 1
178: echo ">>> Now rebuild elwix $CMD program ..."
179: ;;
180: bmon)
1.1.2.2 ! misho 181: cd ${ADDSRC}/bmon
1.1.2.1 misho 182: ./configure --disable-rrd --disable-asound --disable-dbi ${PFX} || exit 1
183: ${MK} clean || exit 1
184: ${MK} || exit 1
185: ${MK} install || exit 1
186: echo ">>> Now rebuild elwix $CMD program ..."
187: ;;
188: iftop)
1.1.2.2 ! misho 189: cd ${ADDSRC}/iftop
1.1.2.1 misho 190: ./configure --with-resolver=netdb_1thread ${PFX} || exit 1
191: ${MK} clean || exit 1
192: ${MK} || exit 1
193: ${MK} install || exit 1
194: echo ">>> Now rebuild elwix $CMD program ..."
195: ;;
196: arping)
197: echo ">>> Building libnet ..."
1.1.2.2 ! misho 198: cd ${ADDSRC}/libnet
1.1.2.1 misho 199: ./configure ${PFX} || exit 1
200: ${MK} clean || exit 1
201: ${MK} || exit 1
202: ${MK} install || exit 1
203: echo ">>> Building arping ..."
1.1.2.2 ! misho 204: cd ${ADDSRC}/arping
1.1.2.1 misho 205: env LDFLAGS=-L${TOP}/libnet/src CFLAGS=-I${TOP}/libnet/include ./configure ${PFX} || exit 1
206: ${MK} clean || exit 1
207: ${MK} || exit 1
208: ${MK} install || exit 1
209: echo ">>> Now rebuild elwix $CMD program ..."
210: ;;
211: hping2)
1.1.2.2 ! misho 212: cd ${ADDSRC}/hping2
1.1.2.1 misho 213: ./configure ${PFX} || exit 1
214: ${MK} clean || exit 1
215: ${MK} || exit 1
216: install hping2 ${P}/sbin || exit 1
217: echo ">>> Now rebuild elwix $CMD program ..."
218: ;;
219: mtr)
1.1.2.2 ! misho 220: cd ${ADDSRC}/mtr
1.1.2.1 misho 221: ./configure --enable-ipv6 --without-gtk --without-glib ${PFX} || exit 1
222: ${MK} clean || exit 1
223: ${MK} || exit 1
224: ${MK} install || exit 1
225: echo ">>> Now rebuild elwix $CMD program ..."
226: ;;
227: ipguard)
1.1.2.2 ! misho 228: cd ${ADDSRC}/ipguard
1.1.2.1 misho 229: ${MK} clean || exit 1
230: ${MK} || exit 1
231: install ipguard ${P}/sbin || exit 1
232: echo ">>> Now rebuild elwix $CMD program ..."
233: ;;
234: miniupnpd)
1.1.2.2 ! misho 235: cd ${ADDSRC}/miniupnpd
1.1.2.1 misho 236: ${MK} clean || exit 1
237: ${MK} || exit 1
238: install miniupnpd ${P}/sbin || exit 1
239: install miniupnpdctl ${P}/sbin || exit 1
240: echo ">>> Now rebuild elwix $CMD program ..."
241: ;;
242: miniupnpc)
1.1.2.2 ! misho 243: cd ${ADDSRC}/miniupnpc
1.1.2.1 misho 244: ${MK} clean || exit 1
245: ${MK} || exit 1
246: install libminiupnpc.so ${P}/lib || exit 1
247: install external-ip.sh ${P}/bin || exit 1
248: install upnpc-shared ${P}/bin/upnpc || exit 1
249: echo ">>> Now rebuild elwix $CMD program ..."
250: ;;
251: smartmontools)
1.1.2.2 ! misho 252: cd ${ADDSRC}/smartmontools
1.1.2.1 misho 253: ./configure --enable-sample --disable-dependency-tracking --enable-drivedb ${PFX} || exit 1
254: ${MK} clean || exit 1
255: ${MK} || exit 1
256: ${MK} install || exit 1
257: echo ">>> Now rebuild elwix $CMD program ..."
258: ;;
259: libiconv)
1.1.2.2 ! misho 260: cd ${ADDSRC}/libiconv
1.1.2.1 misho 261: ./configure --enable-static --without-libintl-prefix ${PFX} || exit 1
262: ${MK} clean || exit 1
263: ${MK} || exit 1
264: ${MK} install || exit 1
265: echo ">>> Now rebuild elwix $CMD program ..."
266: ;;
267: quagga)
1.1.2.2 ! misho 268: cd ${ADDSRC}/quagga
1.1.2.1 misho 269: ./configure --enable-user=quagga --enable-group=quagga \
270: --sysconfdir=/etc/quagga --localstatedir=/var/run/quagga \
271: --enable-vtysh --enable-opaque-lsa --enable-rtadv ${PFX} || exit 1
272: ${MK} clean || exit 1
273: ${MK} || exit 1
274: ${MK} install || exit 1
275: echo ">>> Now rebuild elwix $CMD program ..."
276: ;;
277: pcre)
1.1.2.2 ! misho 278: cd ${ADDSRC}/pcre
1.1.2.1 misho 279: ./configure --enable-utf --enable-unicode-properties --enable-pcre8 \
280: --enable-pcre16 --enable-pcre32 ${PFX} || exit 1
281: ${MK} clean || exit 1
282: ${MK} || exit 1
283: ${MK} install || exit 1
284: echo ">>> Now rebuild elwix $CMD program ..."
285: ;;
286: libxml2)
1.1.2.2 ! misho 287: cd ${ADDSRC}/libxml2
1.1.2.1 misho 288: ./configure --without-python ${PFX} || exit 1
289: ${MK} clean || exit 1
290: ${MK} || exit 1
291: ${MK} install || exit 1
292: echo ">>> Now rebuild elwix $CMD program ..."
293: ;;
294: php)
1.1.2.2 ! misho 295: cd ${ADDSRC}/php
1.1.2.1 misho 296: ./configure --with-layout=GNU --localstatedir=/var --with-config-file-scan-dir=/etc/php \
297: --disable-all --enable-libxml --enable-xml --with-libxml-dir=${P} --with-openssl \
298: --enable-zip --enable-sqlite-utf8 ${PFX} || exit 1
299: ${MK} clean || exit 1
300: ${MK} || exit 1
301: ${MK} install || exit 1
302: rm -f ${P}/bin/php
303: strip -s ${P}/bin/php-cgi
304: echo ">>> Now rebuild elwix $CMD program ..."
305: ;;
306: scan_ffs)
1.1.2.2 ! misho 307: cd ${ADDSRC}/scan_ffs
1.1.2.1 misho 308: ${MK} clean || exit 1
309: ${MK} || exit 1
310: install scan_ffs ${P}/bin || exit 1
311: echo ">>> Now rebuild elwix $CMD program ..."
312: ;;
313: dnsmasq)
1.1.2.2 ! misho 314: cd ${ADDSRC}/dnsmasq
1.1.2.1 misho 315: ${MK} clean || exit 1
316: ${MK} || exit 1
317: install src/dnsmasq ${P}/bin || exit 1
318: echo ">>> Now rebuild elwix $CMD program ..."
319: ;;
320: rsync)
1.1.2.2 ! misho 321: cd ${ADDSRC}/rsync
1.1.2.1 misho 322: ./configure.sh --disable-debug --enable-ipv6 --with-rsyncd-conf=/etc/rsyncd.conf \
323: --disable-iconv --with-included-popt ${PFX} || exit 1
324: ${MK} clean || exit 1
325: ${MK} || exit 1
326: ${MK} install || exit 1
327: echo ">>> Now rebuild elwix $CMD program ..."
328: ;;
329: istgt)
1.1.2.2 ! misho 330: cd ${ADDSRC}/istgt
1.1.2.1 misho 331: ./configure --enable-symlink-device ${PFX} || exit 1
332: ${MK} clean || exit 1
333: ${MK} || exit 1
334: install src/istgt ${P}/bin || exit 1
335: install src/istgtcontrol ${P}/bin || exit 1
336: echo ">>> Now rebuild elwix $CMD program ..."
337: ;;
338: ntp)
1.1.2.2 ! misho 339: cd ${ADDSRC}/ntp
1.1.2.1 misho 340: ./configure --without-ntpsnmpd --with-crypto --enable-ipv6 --enable-BANCOMM \
341: --enable-GPSVME --enable-ACTS --enable-ARBITER --enable-ARCRON_MSF \
342: --enable-AS2201 --enable-ATOM --enable-CHRONOLOG --enable-CHU \
343: --enable-AUDIO_CHU --enable-DATUM --enable-DUMBCLOCK --enable-FG \
344: --enable-HEATH --enable-HOPFSERIAL --enable-HOPFPCI --enable-HPGPS \
345: --enable-IRIG --enable-JJY --enable-JUPITER --enable-LEITCH \
346: --enable-LOCAL_CLOCK --enable-MX4200 --enable-NEOCLOCK4X --enable-NMEA \
347: --enable-ONCORE --enable-PALISADE --enable-PCF --enable-PST \
348: --enable-RIPENCC --enable-SHM --enable-SPECTRACOM --enable-TRUETIME \
349: --enable-ULINK --enable-WWV --enable-ZYFER --enable-COMPUTIME \
350: --enable-DCF7000 --enable-HOPF6021 --enable-MEINBERG --enable-RAWDCF \
351: --enable-RCC8000 --enable-SCHMID --enable-TRIMTAIP --enable-TRIMTSIP \
352: --enable-WHARTON --enable-VARITEXT ${PFX} || exit 1
353: ${MK} clean || exit 1
354: ${MK} || exit 1
355: ${MK} install || exit 1
356: echo ">>> Now rebuild elwix $CMD program ..."
357: ;;
358: nginx)
1.1.2.2 ! misho 359: cd ${ADDSRC}/nginx
1.1.2.1 misho 360: ./configure --conf-path=/etc/nginx.conf --user=www --group=www \
361: --pid-path=/var/run/nginx.pid \
362: --error-log-path=/var/log/nginx-error.log \
363: --lock-path=/var/run/nging.lock \
364: --http-log-path=/var/log/nginx-access.log --with-ipv6 \
365: --with-http_ssl_module --with-http_mp4_module ${PFX} || exit 1
366: # ${MK} clean || exit 1
367: ${MK} || exit 1
368: # ${MK} install || exit 1
369: echo ">>> Now rebuild elwix $CMD program ..."
370: ;;
371: spawn-fcgi)
1.1.2.2 ! misho 372: cd ${ADDSRC}/spawn-fcgi
1.1.2.1 misho 373: ./configure ${PFX} || exit 1
374: ${MK} clean || exit 1
375: ${MK} || exit 1
376: ${MK} install || exit 1
377: echo ">>> Now rebuild elwix $CMD program ..."
378: ;;
379: lighttpd)
1.1.2.2 ! misho 380: cd ${ADDSRC}/lighttpd
1.1.2.1 misho 381: ./configure --enable-static --with-openssl ${PFX} || exit 1
382: ${MK} clean || exit 1
383: ${MK} || exit 1
384: ${MK} install || exit 1
385: echo ">>> Now rebuild elwix $CMD program ..."
386: ;;
387: *)
388: echo "Package not supported at this moment ..."
389: exit 1
390: esac
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>