|
Lines 16-48
Link Here
|
| 16 |
RDEPEND="dev-lang/perl" |
16 |
RDEPEND="dev-lang/perl" |
| 17 |
|
17 |
|
| 18 |
pkg_setup() { |
18 |
pkg_setup() { |
| 19 |
enewgroup ddclient 460 |
19 |
enewgroup ddclient -1 |
| 20 |
enewuser ddclient 460 /bin/false /dev/null ddclient |
20 |
enewuser ddclient -1 /bin/false /dev/null ddclient |
| 21 |
} |
21 |
} |
| 22 |
|
22 |
|
| 23 |
src_unpack() { |
23 |
src_unpack() { |
| 24 |
unpack ${A}; cd ${S} |
24 |
unpack ${A} |
|
|
25 |
cd ${S} |
| 25 |
epatch ${FILESDIR}/${PN}-mss1.diff |
26 |
epatch ${FILESDIR}/${PN}-mss1.diff |
| 26 |
epatch ${FILESDIR}/${PN}-daemon0inconfig.diff |
27 |
epatch ${FILESDIR}/${PN}-daemon0inconfig.diff |
|
|
28 |
|
| 29 |
sed -i -e 's:/var/run/ddclient.pid:/var/run/ddclient/ddclient.pid:' sample-etc_ddclient.conf |
| 27 |
} |
30 |
} |
| 28 |
|
31 |
|
| 29 |
src_install() { |
32 |
src_install() { |
| 30 |
dosbin ddclient || die "dosbin" |
33 |
dosbin ddclient || die "dosbin" |
| 31 |
insinto /etc/ddclient |
34 |
|
| 32 |
doins sample-etc_[c-p]* |
|
|
| 33 |
newins sample-etc_ddclient.conf ddclient.conf |
| 34 |
|
| 35 |
dodoc README* Change* COPYRIGHT |
35 |
dodoc README* Change* COPYRIGHT |
|
|
36 |
dodoc sample-etc_[c-p]* |
| 36 |
|
37 |
|
| 37 |
exeinto /etc/init.d |
38 |
newinitd ${FILESDIR}/ddclient.init ddclient |
| 38 |
newexe ${FILESDIR}/ddclient.init ddclient |
|
|
| 39 |
|
39 |
|
| 40 |
chown root:ddclient ${D}/etc/ddclient/* |
40 |
insinto /etc/ddclient |
| 41 |
chmod 640 /etc/ddclient/* |
41 |
insopts -m 0640 -g ddclient -o root |
|
|
42 |
newins sample-etc_ddclient.conf ddclient.conf |
| 43 |
|
| 44 |
diropts -m 0755 -g ddclient -o ddclient |
| 45 |
keepdir /var/run/ddclient |
| 42 |
} |
46 |
} |
| 43 |
|
47 |
|
| 44 |
pkg_postinst() { |
48 |
pkg_postinst() { |
| 45 |
echo |
|
|
| 46 |
einfo |
49 |
einfo |
| 47 |
ewarn "The files in ${ROOT}etc/ddclient will be chowned to" |
50 |
ewarn "The files in ${ROOT}etc/ddclient will be chowned to" |
| 48 |
ewarn "root:ddclient, and chmodded to 640:" |
51 |
ewarn "root:ddclient, and chmodded to 640:" |
|
Lines 54-62
Link Here
|
| 54 |
ewarn "In other words, please follow the ownership/permissions scheme" |
57 |
ewarn "In other words, please follow the ownership/permissions scheme" |
| 55 |
ewarn "that has been laid out in /etc/ddclient for you." |
58 |
ewarn "that has been laid out in /etc/ddclient for you." |
| 56 |
einfo |
59 |
einfo |
| 57 |
ebeep |
|
|
| 58 |
epause |
| 59 |
|
| 60 |
chown root:ddclient ${ROOT}/etc/ddclient/* |
| 61 |
chmod 640 ${ROOT}/etc/ddclient/* |
| 62 |
} |
60 |
} |