diff options
author | Bernhard Tittelbach <service-anytun@tittelbach.org> | 2009-12-05 16:31:04 +0000 |
---|---|---|
committer | Bernhard Tittelbach <service-anytun@tittelbach.org> | 2009-12-05 16:31:04 +0000 |
commit | 7f8938146d5dcf494f7ff5cd85da75ec2e764f9b (patch) | |
tree | 34e49988930b229f8f608365029149a6b7e2b5ef /gentoo-linux/net-misc/uanytun | |
parent | Improvements suggested by #gentoo-sunrise people (diff) |
use user anytun for uanytun
Diffstat (limited to 'gentoo-linux/net-misc/uanytun')
-rw-r--r-- | gentoo-linux/net-misc/uanytun/uanytun-0.3.2.ebuild | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gentoo-linux/net-misc/uanytun/uanytun-0.3.2.ebuild b/gentoo-linux/net-misc/uanytun/uanytun-0.3.2.ebuild index ad59b7a..f163414 100644 --- a/gentoo-linux/net-misc/uanytun/uanytun-0.3.2.ebuild +++ b/gentoo-linux/net-misc/uanytun/uanytun-0.3.2.ebuild @@ -44,20 +44,23 @@ src_install() { cd ../ dodoc AUTHORS ChangeLog README || die "failed to install docs" + + #patch any examples to use user "antun" instad of "uanytun" + find "${D}"/usr/share/doc/${PF}/examples/etc/ -name "config" -exec sed -i 's/\(username\|groupname\) uanytun$/\1 anytun/' {} \; } pkg_config() { [ ! -d "${ROOT}"/usr/share/doc/${PF}/examples/etc/${PN} ] && \ - die "can't copy example configs since examples were not installed (reemerge with USE=\"examples\")" - for example in autostart client1 client2 client3 p2p-a p2p-b; do + die 'can't copy example configs since examples were not installed (reemerge with USE="examples")' + for example in autostart client1 client2 client3 p2p-a p2p-b; do [ -e "${ROOT}"/etc/${PN}/${example} ] && die "${ROOT}/etc/${PN}/${example} already present, rm -R it first" done cp -rv "${ROOT}"/usr/share/doc/${PF}/examples/etc/${PN} "${ROOT}"/etc/ || die "failed to copy examples" } pkg_postinst() { - enewgroup uanytun - enewuser uanytun -1 -1 /var/run/ uanytun + enewgroup anytun + enewuser anytun -1 -1 /var/run/ anytun elog "Note that each VPN gets its own directory under /etc/${PN}/" elog "(see examples provided with the package)" elog "Use the following command to create gentoo-style" |