Contents of /trunk/extras/ddclient/ddclient-3.7.2-r1.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: 1585 byte(s)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 1585 byte(s)
import repo
1 | # $Header: /magellan-cvs/smage/ddclient/ddclient-3.7.0-r2.smage2,v 1.1 2006/12/12 00:58:40 niro Exp $ |
2 | |
3 | PNAME="ddclient" |
4 | PVER="3.7.2" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="net-dns" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="ddclient is a Perl client used to update DynDNS DNS entries." |
11 | HOMEPAGE="http://ddclient.sourceforge.net/" |
12 | |
13 | DEPEND=">= dev-lang/perl-5" |
14 | |
15 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
16 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
17 | |
18 | sminclude mtools |
19 | |
20 | SRC_URI=( |
21 | mirror://${PNAME}/${SRCFILE} |
22 | http://kent.dl.sourceforge.net/sourceforge/${PNAME}/${SRCFILE} |
23 | mirror://${PNAME}/ddclient.rc |
24 | mirror://${PNAME}/${PNAME}-3.7.0-reasonable-security.patch |
25 | ) |
26 | |
27 | src_prepare() |
28 | { |
29 | munpack ${SRCFILE} || die |
30 | cd ${SRCDIR} |
31 | |
32 | # security patch from gentoo |
33 | mpatch ${PNAME}-3.7.0-reasonable-security.patch || die |
34 | |
35 | # fix programcache location |
36 | sed -i 's:$etc$program.cache:/var/cache/ddclient/$program.cache:' ddclient || die |
37 | |
38 | # remove pid line, specified in rc-script |
39 | sed -i "/^pid=*/d" sample-etc_ddclient.conf || die |
40 | |
41 | } |
42 | |
43 | src_install() |
44 | { |
45 | cd ${SRCDIR} |
46 | |
47 | # needed directories |
48 | minstalldir /usr/sbin || die |
49 | minstalldir /etc/ddclient || die |
50 | |
51 | # binary |
52 | minstallexec ddclient /usr/sbin || die |
53 | |
54 | # config |
55 | install -m0640 -o root -g ddclient \ |
56 | sample-etc_ddclient.conf \ |
57 | ${BINDIR}/etc/ddclient/ddclient.conf || die |
58 | |
59 | # initscript |
60 | minstallrc ddclient.rc ddclient || die |
61 | |
62 | mkeepdir /var/cache/ddclient || die |
63 | mkeepdir /var/run/ddclient || die |
64 | |
65 | minstalldocs Changelog COPYING COPYRIGHT README* || die |
66 | } |
67 | |
68 | preinstall() |
69 | { |
70 | ${MLIBDIR}/mgroupadd ddclient |
71 | ${MLIBDIR}/museradd -o "-g ddclient -d /var/empty -s /bin/false" ddclient |
72 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |