Magellan Linux

Contents of /branches/R11-unstable/core/tcp-wrappers/tcp-wrappers-7.6-r12.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 25077 - (show annotations) (download)
Tue Nov 25 02:57:42 2014 UTC (9 years, 5 months ago) by niro
File size: 1576 byte(s)
-release branches/R11-unstable
1 # $Id$
2
3 PNAME="tcp-wrappers"
4 PVER="7.6"
5 PBUILD="r12"
6
7 PCAT="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 msetfeature "!check"
19
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 mmake CC='"$CC"' REAL_DAEMON_DIR=/usr/sbin STYLE=-DPROCESS_OPTIONS linux || die
53 }
54
55 src_install()
56 {
57 cd ${SRCDIR}
58
59 # needed directories
60 minstalldir /usr/{include,sbin} || die
61 all-abis 'minstalldir /usr/$(mlibdir)' || die
62 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 }