Magellan Linux

Annotation of /trunk/core/tcp-wrappers/tcp-wrappers-7.6-r9.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3113 - (hide annotations) (download)
Tue Oct 13 14:07:59 2009 UTC (14 years, 8 months ago) by niro
File size: 1612 byte(s)
auto added: ver bump to 7.6-r9
1 niro 3113 # $Header: /magellan-cvs/smage/tcp-wrappers/tcp-wrappers-7.6-r7.smage2,v 1.1 2008/02/10 11:49:37 niro Exp $
2    
3     PNAME="tcp-wrappers"
4     PVER="7.6"
5     PBUILD="r9"
6    
7     PCATEGORIE="sys-apps"
8     STATE="unstable"
9    
10     DESCRIPTION="The TCP/IP daemon wrapper package."
11     HOMEPAGE="ftp://ftp.porcupine.org/pub/security/index.html"
12    
13     DEPEND=">= virtual/glibc"
14    
15     SRCFILE="${PNAME/-/_}_${PVER}.tar.gz"
16     SRCDIR="${BUILDDIR}/${PNAME/-/_}_${PVER}"
17    
18     sminclude mtools
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     chmod ug+w Makefile || die
41    
42     # fix gcc-34 compile issues
43     sed -i "s,^extern char \*malloc();,/* & */," scaffold.c || die
44    
45     # fixes CFLAGS
46     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 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     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     }

Properties

Name Value
svn:keywords Id