Magellan Linux

Contents of /branches/magellan-next/core/tcp-wrappers/tcp-wrappers-7.6-r12.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8181 - (show annotations) (download)
Tue Jul 12 23:25:44 2011 UTC (12 years, 9 months ago) by niro
File size: 1539 byte(s)
-multilib
1 # $Id$
2
3 PNAME="tcp-wrappers"
4 PVER="7.6"
5 PBUILD="r12"
6
7 PCATEGORIE="sys-apps"
8
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
19 SRC_URI=(
20 ftp://ftp.porcupine.org/pub/security/${SRCFILE}
21 mirror://${PNAME}/${SRCFILE}
22 mirror://${PNAME}/tcp_wrappers-7.6-shared-lib-plus-plus.patch
23 mirror://${PNAME}/${PNAME}-${PVER}-libdir.patch
24 )
25
26 UP2DATE="updatecmd ftp://ftp.porcupine.org/pub/security/ | grep ${PNAME/-/_}.*.tar | sed -n 's/.*_\(.*\)\.tar.*/\1/;s/eta//;$ p'"
27
28 src_prepare()
29 {
30 munpack ${SRCFILE} || die
31 cd ${SRCDIR}
32
33 # builds tcp-wrappers with shared libraries
34 mpatch tcp_wrappers-7.6-shared-lib-plus-plus.patch || die
35
36 # allow variable libdir
37 mpatch ${PNAME}-${PVER}-libdir.patch || die
38
39 all-abis "chmod ug+w Makefile" || die
40
41 # fix gcc-34 compile issues
42 all-abis 'sed -i "s,^extern char \*malloc();,/* & */," scaffold.c' || die
43
44 # fixes CFLAGS
45 all-abis 'sed -i -e "s:-O2:${CFLAGS}:" -e "s:AUX_OBJ=.*:AUX_OBJ= \\\:" Makefile' || die
46 }
47
48 src_compile()
49 {
50 cd ${SRCDIR}
51 mmake REAL_DAEMON_DIR=/usr/sbin STYLE=-DPROCESS_OPTIONS linux || die
52 }
53
54 src_install()
55 {
56 cd ${SRCDIR}
57
58 # needed directories
59 minstalldir /usr/{include,sbin} || die
60 minstalldir /usr/$(mlibdir) || die
61 minstalldir /usr/share/man/man{3,5,8} || die
62
63 mmake DESTDIR=${BINDIR} LIBDIR='$(mlibdir)' install || die
64
65 minstalldocs BLURB CHANGES DISCLAIMER README* || die
66 }