Contents of /trunk/core/portmap/portmap-5b-r7.smage2
Parent Directory | Revision Log
Revision 2 -
(show annotations)
(download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 1623 byte(s)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 1623 byte(s)
import repo
1 | # $Header: /magellan-cvs/smage/portmap/portmap-5b-r7.smage2,v 1.1 2008/02/10 23:15:21 niro Exp $ |
2 | |
3 | PNAME="portmap" |
4 | PVER="5b" |
5 | PBUILD="r7" |
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="ftp://ftp.porcupine.org/pub/security/index.html" |
12 | |
13 | DEPEND=">= sys-apps/tcp-wrappers-7.6" |
14 | |
15 | SRCFILE="${PNAME}_${PVER/5b/5beta}.tar.gz" |
16 | SRCDIR="${BUILDDIR}/${PNAME}_${PVER/5b/5beta}" |
17 | |
18 | sminclude mtools |
19 | |
20 | SRC_URI=( |
21 | ftp://ftp.porcupine.org/pub/security/${SRCFILE} |
22 | mirror://${PNAME}/${SRCFILE} |
23 | mirror://${PNAME}/portmap-5beta-compilation_fixes-3.patch |
24 | mirror://${PNAME}/portmap-5beta-glibc-errno-fix.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 | # fixes some compile issues |
35 | mpatch portmap-5beta-compilation_fixes-3.patch || die |
36 | mpatch portmap-5beta-glibc-errno-fix.patch || die |
37 | |
38 | # force use of our CFLAGS |
39 | sed -e "s:-O2:${CFLAGS}:" -i Makefile || die |
40 | } |
41 | |
42 | src_compile() |
43 | { |
44 | cd ${SRCDIR} |
45 | local WRAP_DIR="${ROOT}/usr/$(mlibdir)" |
46 | |
47 | [[ -f /usr/$(mlibdir)/libwrap.a ]] && WRAP_DIR="/usr/$(mlibdir)" |
48 | |
49 | mmake FACILITY=LOG_AUTH \ |
50 | ZOMBIES='-DIGNORE_SIGCHLD' \ |
51 | WRAP_DIR="${WRAP_DIR}" \ |
52 | LIBS="-Wl,-Bstatic -lwrap -lutil -Wl,-Bdynamic -lnsl" \ |
53 | AUX= || die |
54 | } |
55 | |
56 | src_install() |
57 | { |
58 | cd ${SRCDIR} |
59 | |
60 | # needed directories |
61 | minstalldir /sbin || die |
62 | minstalldir /usr/sbin || die |
63 | minstalldir /usr/share/man/man8 || die |
64 | |
65 | mmake BASEDIR=${BINDIR} install || die |
66 | minstalldocs BLURB CHANGES README || die |
67 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |