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