Magellan Linux

Contents of /trunk/core/portmap/portmap-5b-r8.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1680 - (show annotations) (download)
Wed May 13 18:18:35 2009 UTC (14 years, 11 months ago) by niro
File size: 1340 byte(s)
-pruned old cruft
1 # $Id$
2
3 PNAME="portmap"
4 PVER="6.0"
5 PBUILD="r1"
6
7 PCATEGORIE="net-nds"
8 STATE="unstable"
9
10 DESCRIPTION="The portmapper manages RPC connections, which are used by protocols such as NFS and NIS."
11 HOMEPAGE="http://neil.brown.name/portmap/"
12
13 DEPEND=">= sys-apps/tcp-wrappers-7.6"
14
15 SRCFILE="${PNAME}_${PVER/5b/5beta}.tgz"
16 SRCDIR="${BUILDDIR}/${PNAME}_${PVER/5b/5beta}"
17
18 sminclude mtools
19
20 SRC_URI=(
21 http://neil.brown.name/${PNAME}/${SRCFILE}
22 mirror://${PNAME}/${SRCFILE}
23 )
24
25 UP2DATE="updatecmd http://neil.brown.name/portmap/ | lasttarball tgz"
26
27 src_prepare()
28 {
29 munpack ${SRCFILE} || die
30 cd ${SRCDIR}
31
32 # fixes some compile issues
33 mpatch portmap-5beta-compilation_fixes-3.patch || die
34 mpatch portmap-5beta-glibc-errno-fix.patch || die
35
36 # force use of our CFLAGS
37 sed -e "s:-O2:${CFLAGS}:" -i Makefile || die
38 }
39
40 src_compile()
41 {
42 cd ${SRCDIR}
43 local WRAP_DIR="${ROOT}/usr/$(mlibdir)"
44
45 [[ -f /usr/$(mlibdir)/libwrap.a ]] && WRAP_DIR="/usr/$(mlibdir)"
46
47 mmake FACILITY=LOG_AUTH \
48 ZOMBIES='-DIGNORE_SIGCHLD' \
49 WRAP_DIR="${WRAP_DIR}" \
50 LIBS="-Wl,-Bstatic -lwrap -lutil -Wl,-Bdynamic -lnsl" \
51 AUX= || die
52 }
53
54 src_install()
55 {
56 cd ${SRCDIR}
57
58 # needed directories
59 minstalldir /sbin || die
60 minstalldir /usr/sbin || die
61 minstalldir /usr/share/man/man8 || die
62
63 mmake BASEDIR=${BINDIR} install || die
64 minstalldocs BLURB CHANGES README || die
65 }

Properties

Name Value
svn:keywords Id