Magellan Linux

Contents of /trunk/deprecated/mdnsresponder/mdnsresponder-108.6-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1297 - (show annotations) (download)
Tue Apr 28 17:07:34 2009 UTC (15 years ago) by niro
File size: 1535 byte(s)
-moved to 'deprecated'
1 # $Header: /magellan-cvs/smage/mdnsresponder/mdnsresponder-108.6-r1.smage2,v 1.2 2008/02/14 17:51:29 niro Exp $
2
3 PNAME="mdnsresponder"
4 PVER="108.6"
5 PBUILD="r1"
6
7 PCATEGORIE="net-misc"
8 STATE="unstable"
9
10 DESCRIPTION="mDNSResponder is a zeroconf networking daemon developed by apple."
11 HOMEPAGE="http://developer.apple.com/networking/bonjour/index.html"
12
13 DEPEND=""
14
15 SRCFILE="mDNSResponder-${PVER}.tar.gz"
16 SRCDIR="${BUILDDIR}/mDNSResponder-${PVER}"
17
18 sminclude mtools
19
20 SRC_URI=(
21 http://www.opensource.apple.com/darwinsource/tarballs/other/${SRCFILE}
22 mirror://${PNAME}/${SRCFILE}
23 mirror://${PNAME}/mdnsd.rc
24 mirror://${PNAME}/${PNAME}-${PVER}-magellan.patch
25 )
26
27 src_prepare()
28 {
29 munpack ${SRCFILE} || die
30 cd ${SRCDIR}
31
32 # adds ${DESTDIR} support to makefile
33 # and removes unwanted rc-scripts
34 # and uses lazy opts @linking
35 mpatch ${PNAME}-${PVER}-magellan.patch || die
36 }
37
38 src_compile()
39 {
40 cd ${SRCDIR}/mDNSPosix
41
42 # building this baby with linux target;
43 mmake os=linux || die
44 }
45
46 src_install()
47 {
48 cd ${SRCDIR}/mDNSPosix
49
50 # needed directories
51 minstalldir /etc || die
52 minstalldir {,/usr}/lib || die
53 minstalldir /usr/{include,sbin} || die
54 minstalldir /usr/share/man/man{5,8} || die
55
56 mmake DESTDIR=${BINDIR} os=linux install || die
57
58 # fix libdir
59 if [[ $(mlibdir) != lib ]]
60 then
61 mv ${BINDIR}/lib ${BINDIR}/$(mlibdir) || die
62 mv ${BINDIR}/usr/lib ${BINDIR}/usr/$(mlibdir) || die
63 fi
64
65 # install our initscript
66 minstallrc mdnsd.rc mdnsd || die
67
68 cd ${SRCDIR}
69 minstalldocs APPLE_LICENSE README.txt mDNSPosix/nss_ReadMe.txt || die
70 }

Properties

Name Value
svn:keywords Id