dev-libs/openct: remove unused file
authorAlon Bar-Lev <alonbl@gentoo.org>
Sun, 23 Sep 2018 19:04:28 +0000 (22:04 +0300)
committerAlon Bar-Lev <alonbl@gentoo.org>
Thu, 27 Sep 2018 23:51:24 +0000 (02:51 +0300)
Package-Manager: Portage-2.3.49, Repoman-2.3.10

dev-libs/openct/files/openct.initd [moved from dev-libs/openct/files/openct.rc.2 with 92% similarity]
dev-libs/openct/files/openct.rc [deleted file]
dev-libs/openct/openct-0.6.20-r4.ebuild

similarity index 92%
rename from dev-libs/openct/files/openct.rc.2
rename to dev-libs/openct/files/openct.initd
index d07cc611626257f799eab397f863dca5dc3f0797..79f2336f3ea15352760eedabf3a35485104e7f68 100644 (file)
@@ -1,5 +1,5 @@
 #!/sbin/openrc-run
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 depend() {
diff --git a/dev-libs/openct/files/openct.rc b/dev-libs/openct/files/openct.rc
deleted file mode 100644 (file)
index b3ff33e..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-depend() {
-       need localmount
-}
-
-checkconfig() {
-       if [ ! -e /etc/openct.conf ] ; then
-               eerror "You need an /etc/openct.conf file to run OpenCT"
-               return 1
-       fi
-       return 0
-}
-
-start() {
-       checkconfig || return 1
-
-       ebegin "Starting OpenCT"
-       /usr/sbin/openct-control init
-       eend $?
-}
-
-stop() {
-       ebegin "Stopping OpenCT"
-       /usr/sbin/openct-control shutdown
-       eend $?
-}
index b675d41066d20a3881f8d8c6271c5eed577d4164..8f874966fbf6539455f737083c3d15c32c2a6b25 100644 (file)
@@ -61,7 +61,7 @@ src_install() {
 
        use udev && udev_newrules etc/openct.udev 70-openct.rules
 
-       newinitd "${FILESDIR}"/openct.rc.2 openct
+       newinitd "${FILESDIR}"/openct.initd openct
 }
 
 pkg_postinst() {