summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Väth <martin@mvath.de>2016-09-24 23:44:21 +0200
committerMartin Väth <martin@mvath.de>2016-09-24 23:44:21 +0200
commite9aeca88ea37a8d138a8aa07b6bf519076299407 (patch)
treeca3ee25942b60323fe3da321dfa350af066fc9c1
parentapp-admin/sudox: Version bump (diff)
downloadmv-e9aeca88ea37a8d138a8aa07b6bf519076299407.tar.gz
mv-e9aeca88ea37a8d138a8aa07b6bf519076299407.tar.bz2
mv-e9aeca88ea37a8d138a8aa07b6bf519076299407.zip
app-admin/sudox: Version bump
-rw-r--r--app-admin/sudox/Manifest2
-rw-r--r--app-admin/sudox/sudox-6.0.0.ebuild (renamed from app-admin/sudox/sudox-5.0.0.ebuild)19
2 files changed, 16 insertions, 5 deletions
diff --git a/app-admin/sudox/Manifest b/app-admin/sudox/Manifest
index 1c3a62b4..94d517c9 100644
--- a/app-admin/sudox/Manifest
+++ b/app-admin/sudox/Manifest
@@ -1 +1 @@
-DIST sudox-5.0.0.tar.gz 7266 SHA256 fff3da63ded672c554dbcca776f4c4e2c5c6d99fe26bd9aa906bce9a090bbe2e
+DIST sudox-6.0.0.tar.gz 8540 SHA256 65cc7c3eac57a9ecf41d5db1f8db8bd015cc058a56ae27d65d085f64ba505192
diff --git a/app-admin/sudox/sudox-5.0.0.ebuild b/app-admin/sudox/sudox-6.0.0.ebuild
index 6e5d8efe..ef6b2e19 100644
--- a/app-admin/sudox/sudox-5.0.0.ebuild
+++ b/app-admin/sudox/sudox-6.0.0.ebuild
@@ -19,15 +19,26 @@ DEPEND=""
src_prepare() {
use prefix || sed -i \
-e '1s"^#!/usr/bin/env sh$"#!'"${EPREFIX}"'/bin/sh"' \
- -- "${PN}" || die
+ -- bin/* || die
eapply_user
}
src_install() {
dodoc README ChangeLog
- dobin "${PN}"
+ doenvd env.d/*
+ dobin bin/"${PN}"
insinto /usr/bin
- doins "${PN}e"
+ doins bin/"${PN}e"
insinto /usr/share/zsh/site-functions
- doins "_${PN}"
+ doins zsh/*
+ insinto /etc/sudoers.d
+ insopts -m440
+ doins sudoers.d/*
+}
+
+pkg_postinst() {
+ case " ${REPLACING_VERSIONS:-0.}" in
+ *' '[0-5].*)
+ ewarn "You should call env-update and source /etc/profile";
+ esac
}