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