summaryrefslogtreecommitdiff
path: root/sci-libs/indilib/indilib-1.0.0.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'sci-libs/indilib/indilib-1.0.0.ebuild')
-rw-r--r--sci-libs/indilib/indilib-1.0.0.ebuild13
1 files changed, 13 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."
+}
+