Magellan Linux

Contents of /trunk/todo/nfs-utils/nfs-utils-1.1.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2484 - (show annotations) (download)
Thu Jul 9 20:08:07 2009 UTC (14 years, 10 months ago) by niro
File size: 2395 byte(s)
-moved to 'todo'
1 # $Header$
2
3 PNAME="nfs-utils"
4 PVER="1.1.1"
5 PBUILD="r1"
6
7 PCATEGORIE="net-fs"
8 STATE="unstable"
9
10 DESCRIPTION="NFS client and server daemons."
11 HOMEPAGE="http://nfs.sourceforge.net/"
12
13
14 DEPEND=">= sys-apps/tcp-wrappers-7
15 >= net-nds/portmap-5b
16 >= dev-libs/libevent-1.0b
17 >= net-libs/libnfsidmap-0.16"
18
19 SRCFILE="${PNAME}-${PVER}.tar.gz"
20 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
21
22 sminclude mtools
23
24 SRC_URI=(
25 sourceforge://nfs/${SRCFILE}
26 mirror://${PNAME}/${SRCFILE}
27 http://www.citi.umich.edu/projects/nfsv4/linux/nfs-utils-patches/1.1.1-1/nfs-utils-1.1.1-001-xlog_segfault_fix.dif
28 http://www.citi.umich.edu/projects/nfsv4/linux/nfs-utils-patches/1.1.1-1/nfs-utils-1.1.1-002-svcgssd_pass_down_principal_name.dif
29 )
30
31 src_prepare()
32 {
33 munpack ${SRCFILE} || die
34 cd ${SRCDIR}
35
36 # upstream patches
37 mpatch nfs-utils-1.1.1-001-xlog_segfault_fix.dif || die
38 mpatch nfs-utils-1.1.1-002-svcgssd_pass_down_principal_name.dif || die
39 }
40
41 src_compile()
42 {
43 cd ${SRCDIR}
44
45 mconfigure \
46 --mandir=/usr/share/man \
47 --with-statedir=/var/lib/nfs \
48 --disable-rquotad \
49 --enable-nfsv3 \
50 --enable-nfsv4 \
51 --enable-secure-statd \
52 --with-tcp-wrappers \
53 || die
54
55 mmake || die
56 }
57
58 src_install()
59 {
60 cd ${SRCDIR}
61
62 make DESTDIR=${BINDIR} install || die
63
64 # don't overwrite existing xtab/etab, install the original
65 # versions somewhere safe... more info in postinstall()
66 minstalldir /usr/lib/nfs || die
67 mkeepdir /var/lib/nfs/sm || die
68 mkeepdir /var/lib/nfs/sm.bak || die
69 mv ${BINDIR}/var/lib/nfs/* ${BINDIR}/usr/lib/nfs || die
70 mkeepdir /var/lib/nfs
71
72 # install some client-side binaries in /sbin
73 minstalldir /sbin || die
74 mv ${BINDIR}/usr/sbin/rpc.statd ${BINDIR}/sbin/ || die
75
76 minstalldir /etc || die
77 minstallfile -s exports /etc || die
78
79 local i
80 for i in nfs nfsmount rpc.statd rpc.idmapd
81 do
82 minstallrc ${i}.rc ${i} || die ${i}
83 done
84 minstallconfd nfs.confd nfs
85
86 minstallfile utils/idmapd/idmapd.conf /etc || die
87 minstalldoc ChangeLog README
88 }
89
90 postinstall()
91 {
92 # Install default xtab and friends if there's none existing.
93 # In src_install we put them in /usr/lib/nfs for safe-keeping, but
94 # the daemons actually use the files in /var/lib/nfs. This fixes
95 # bug 30486
96 local i
97 for i in ${MROOT}/usr/$(mlibdir)/nfs/*
98 do
99 [[ -e ${MROOT}/var/lib/nfs/${i##*/} ]] && continue
100 echo "Copying default ${i##*/} from /usr/$(mlibdir)/nfs to /var/lib/nfs"
101 cp -pPR "${i}" ${MROOT}/var/lib/nfs/
102 done
103 }

Properties

Name Value
svn:keywords Id