Annotation of /trunk/core/tcp-wrappers/tcp-wrappers-7.6-r12.smage2
Parent Directory | Revision Log
Revision 10206 -
(hide annotations)
(download)
Fri Jan 20 00:03:57 2012 UTC (12 years, 8 months ago) by niro
File size: 1576 byte(s)
Fri Jan 20 00:03:57 2012 UTC (12 years, 8 months ago) by niro
File size: 1576 byte(s)
-no check target in Makefile
1 | niro | 8181 | # $Id$ |
2 | |||
3 | PNAME="tcp-wrappers" | ||
4 | PVER="7.6" | ||
5 | PBUILD="r12" | ||
6 | |||
7 | niro | 10205 | PCAT="sys-apps" |
8 | niro | 8181 | |
9 | DESCRIPTION="The TCP/IP daemon wrapper package." | ||
10 | HOMEPAGE="ftp://ftp.porcupine.org/pub/security/index.html" | ||
11 | |||
12 | DEPEND=">= virtual/glibc" | ||
13 | |||
14 | SRCFILE="${PNAME/-/_}_${PVER}.tar.gz" | ||
15 | SRCDIR="${BUILDDIR}/${PNAME/-/_}_${PVER}" | ||
16 | |||
17 | sminclude mtools multilib | ||
18 | niro | 10206 | msetfeature "!check" |
19 | niro | 8181 | |
20 | SRC_URI=( | ||
21 | ftp://ftp.porcupine.org/pub/security/${SRCFILE} | ||
22 | mirror://${PNAME}/${SRCFILE} | ||
23 | mirror://${PNAME}/tcp_wrappers-7.6-shared-lib-plus-plus.patch | ||
24 | mirror://${PNAME}/${PNAME}-${PVER}-libdir.patch | ||
25 | ) | ||
26 | |||
27 | UP2DATE="updatecmd ftp://ftp.porcupine.org/pub/security/ | grep ${PNAME/-/_}.*.tar | sed -n 's/.*_\(.*\)\.tar.*/\1/;s/eta//;$ p'" | ||
28 | |||
29 | src_prepare() | ||
30 | { | ||
31 | munpack ${SRCFILE} || die | ||
32 | cd ${SRCDIR} | ||
33 | |||
34 | # builds tcp-wrappers with shared libraries | ||
35 | mpatch tcp_wrappers-7.6-shared-lib-plus-plus.patch || die | ||
36 | |||
37 | # allow variable libdir | ||
38 | mpatch ${PNAME}-${PVER}-libdir.patch || die | ||
39 | |||
40 | all-abis "chmod ug+w Makefile" || die | ||
41 | |||
42 | # fix gcc-34 compile issues | ||
43 | all-abis 'sed -i "s,^extern char \*malloc();,/* & */," scaffold.c' || die | ||
44 | |||
45 | # fixes CFLAGS | ||
46 | all-abis 'sed -i -e "s:-O2:${CFLAGS}:" -e "s:AUX_OBJ=.*:AUX_OBJ= \\\:" Makefile' || die | ||
47 | } | ||
48 | |||
49 | src_compile() | ||
50 | { | ||
51 | cd ${SRCDIR} | ||
52 | niro | 8184 | mmake CC='"$CC"' REAL_DAEMON_DIR=/usr/sbin STYLE=-DPROCESS_OPTIONS linux || die |
53 | niro | 8181 | } |
54 | |||
55 | src_install() | ||
56 | { | ||
57 | cd ${SRCDIR} | ||
58 | |||
59 | # needed directories | ||
60 | minstalldir /usr/{include,sbin} || die | ||
61 | niro | 8182 | all-abis 'minstalldir /usr/$(mlibdir)' || die |
62 | niro | 8181 | minstalldir /usr/share/man/man{3,5,8} || die |
63 | |||
64 | mmake DESTDIR=${BINDIR} LIBDIR='$(mlibdir)' install || die | ||
65 | |||
66 | minstalldocs BLURB CHANGES DISCLAIMER README* || die | ||
67 | } |