diff options
author | Ctibor <ctibor.brancik@seznam.cz> | 2015-02-19 00:01:39 +0100 |
---|---|---|
committer | Ctibor <ctibor.brancik@seznam.cz> | 2015-02-19 00:01:39 +0100 |
commit | e225d9646805f9c682ea843d62f495fc78193555 (patch) | |
tree | b9e7ed74857d48676a4d61c92ea046268f248f0b | |
parent | 7cd380e152e3b53e8d48a41ed7daac0016ffc7d9 (diff) | |
download | brancik-overlay-e225d9646805f9c682ea843d62f495fc78193555.tar.gz brancik-overlay-e225d9646805f9c682ea843d62f495fc78193555.tar.bz2 |
sci-libs/indilib now installs init script and creates user indiserver.
-rw-r--r-- | sci-libs/indilib/indilib-1.0.0.ebuild | 13 | ||||
-rw-r--r-- | sci-libs/indilib/indilib-9999.ebuild | 13 |
2 files changed, 26 insertions, 0 deletions
diff --git a/sci-libs/indilib/indilib-1.0.0.ebuild b/sci-libs/indilib/indilib-1.0.0.ebuild index e6a811d..2d6b60e 100644 --- a/sci-libs/indilib/indilib-1.0.0.ebuild +++ b/sci-libs/indilib/indilib-1.0.0.ebuild @@ -45,3 +45,16 @@ src_configure() { cmake-utils_src_configure } + +src_install() { + cmake-utils_src_install + newinitd "${FILESDIR}/indiserver.sh" indiserver + newconfd "${FILESDIR}/indiserver.conf" indiserver +} + +pkg_postinst() { + enewuser indiserver -1 /sbin/nologin /dev/null "usb,uucp,video" -U + elog "You can use init script in /etc/init.d/indiserver to start" + elog "indiserver automatically. Configuration is in /etc/conf.d/indiserver." +} + diff --git a/sci-libs/indilib/indilib-9999.ebuild b/sci-libs/indilib/indilib-9999.ebuild index 97a2ba1..12086b6 100644 --- a/sci-libs/indilib/indilib-9999.ebuild +++ b/sci-libs/indilib/indilib-9999.ebuild @@ -45,3 +45,16 @@ src_configure() { cmake-utils_src_configure } + +src_install() { + cmake-utils_src_install + newinitd "${FILESDIR}/indiserver.sh" indiserver + newconfd "${FILESDIR}/indiserver.conf" indiserver +} + +pkg_postinst() { + enewuser indiserver -1 /sbin/nologin /dev/null "usb,uucp,video" -U + elog "You can use init script in /etc/init.d/indiserver to start" + elog "indiserver automatically. Configuration is in /etc/conf.d/indiserver." +} + |