Magellan Linux

Annotation of /trunk/todo/ddclient/ddclient-3.7.0-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2228 - (hide annotations) (download)
Thu Jul 9 19:23:51 2009 UTC (14 years, 11 months ago) by niro
File size: 1659 byte(s)
-moved to 'todo'
1 niro 2 # $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.0"
5     PBUILD="r2"
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}-${PVER}-reasonable-security.patch
25     )
26    
27     src_prepare() {
28     munpack ${SRCFILE} || die
29     cd ${SRCDIR}
30    
31     # security patch from gentoo
32     mpatch -Np0 ${PNAME}-${PVER}-reasonable-security.patch || die
33    
34     # fix programcache location
35     sed -i 's:$etc$program.cache:/var/cache/ddclient/$program.cache:' ddclient || die
36    
37     # remove pid line, specified in rc-script
38     sed -i "/^pid=*/d" sample-etc_ddclient.conf || die
39    
40     }
41    
42     src_install() {
43     cd ${SRCDIR}
44    
45     # needed directories
46     install -d ${BINDIR}/usr/sbin || die
47     install -d ${BINDIR}/etc/ddclient || die
48    
49     # binary
50     install -m0755 -o root -g root ddclient ${BINDIR}/usr/sbin || die
51    
52     # config
53     install -m0640 -o root -g ddclient \
54     sample-etc_ddclient.conf \
55     ${BINDIR}/etc/ddclient/ddclient.conf || die
56    
57     # initscript
58     minstallrc ${SOURCEDIR}/${PNAME}/ddclient.rc ddclient || die
59    
60     mkeepdir /var/cache/ddclient || die
61     mkeepdir /var/run/ddclient || die
62    
63     minstalldocs Changelog COPYING COPYRIGHT README* || die
64     }
65    
66     preinstall() {
67     ${MLIBDIR}/mgroupadd ddclient
68     ${MLIBDIR}/museradd -o "-g ddclient -d /var/empty -s /bin/false" ddclient
69     }

Properties

Name Value
svn:keywords Id