added an init script closes bug #9074
authorBrad Teaford Cowan <bcowan@gentoo.org>
Sun, 13 Oct 2002 18:27:32 +0000 (18:27 +0000)
committerBrad Teaford Cowan <bcowan@gentoo.org>
Sun, 13 Oct 2002 18:27:32 +0000 (18:27 +0000)
sys-devel/distcc/ChangeLog
sys-devel/distcc/distcc-0.12.ebuild
sys-devel/distcc/distcc-0.5.ebuild [deleted file]
sys-devel/distcc/distcc-0.6.ebuild [deleted file]
sys-devel/distcc/distcc-0.7.ebuild [deleted file]
sys-devel/distcc/distcc-0.8.ebuild [deleted file]
sys-devel/distcc/files/digest-distcc-0.5 [deleted file]
sys-devel/distcc/files/digest-distcc-0.6 [deleted file]
sys-devel/distcc/files/digest-distcc-0.7 [deleted file]
sys-devel/distcc/files/digest-distcc-0.8 [deleted file]
sys-devel/distcc/files/distccd [new file with mode: 0644]

index 0890b8238d2681ab285156031b0cbbd6614d3616..0bd01aee176d44cb1ac33faa2e16fe6e61cfaeb9 100644 (file)
@@ -1,9 +1,14 @@
 # ChangeLog for sys-devel/distcc
 # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/ChangeLog,v 1.9 2002/10/08 22:52:46 bcowan Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/ChangeLog,v 1.10 2002/10/13 18:27:32 bcowan Exp $
 
 *distcc-0.12 (07 Oct 2002)
 
+  13 Oct 2002; Brad Cowan <bcowan@gentoo.org> distcc-0.12.ebuild,
+  files/distccd :
+  
+  Added distccd init script.
+
   22 Sep 2002; Brad Cowan <bcowan@gentoo.org> distcc-0.12.ebuild :
   
   Version bump.
index 920c29374fc3cfa7db3f29c7b9051bf98aebc348..e92fcf03176d5444540f711644b9d0d5a4381084 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 2002 Gentoo Technologies, Inc.
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/distcc-0.12.ebuild,v 1.1 2002/10/08 22:52:46 bcowan Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/distcc-0.12.ebuild,v 1.2 2002/10/13 18:27:32 bcowan Exp $
 
 HOMEPAGE="http://distcc.samba.org"
 SRC_URI="http://distcc.samba.org/ftp/distcc/distcc-${PV}.tar.gz"
@@ -21,6 +21,8 @@ src_compile() {
 
 src_install () {
        dobin src/distcc src/distccd
+       exeinto /etc/init.d
+       doexe ${FILESDIR}/distccd
        doman man/*.1
        dodoc README COPYING* AUTHORS *NEWS doc/*.txt linuxdoc/distcc*
        dohtml linuxdoc/html/*
diff --git a/sys-devel/distcc/distcc-0.5.ebuild b/sys-devel/distcc/distcc-0.5.ebuild
deleted file mode 100644 (file)
index eee9fa8..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-# Copyright 2002 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/distcc-0.5.ebuild,v 1.3 2002/08/14 11:56:44 murphy Exp $
-
-SRC_URI="http://ftp.samba.org/ftp/distcc/${P}.tar.gz"
-HOMEPAGE="http://ftp.samba.org/ftp/distcc/"
-DESCRIPTION="a program to distribute compilation of C code across several machines on a network"
-DEPEND="virtual/glibc dev-libs/popt"
-SLOT="0"
-KEYWORDS="x86 sparc sparc64"
-LICENSE="GPL-2"
-
-src_compile() {
-       ./configure --prefix=/usr --mandir=/usr/share/man || die "config"
-       #Disable creation of PDF documentation
-       cd man
-       mv Makefile Makefile.orig
-       sed < Makefile.orig > Makefile -e 's:distcc.pdf::g' -e 's:distccd.pdf::g'
-       cd ${S}
-       emake || die "emake"
-}
-
-src_install () {
-       dobin src/distcc src/distccd
-       doman man/*.1
-       dodoc man/*.html man/*.ps README 
-}
diff --git a/sys-devel/distcc/distcc-0.6.ebuild b/sys-devel/distcc/distcc-0.6.ebuild
deleted file mode 100644 (file)
index eb1478a..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-# Copyright 2002 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/distcc-0.6.ebuild,v 1.5 2002/08/14 11:56:44 murphy Exp $
-
-HOMEPAGE="http://distcc.samba.org"
-SRC_URI="http://distcc.samba.org/ftp/distcc/distcc-${PV}.tar.gz"
-DESCRIPTION="a program to distribute compilation of C code across several machines on a network"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="x86 ppc sparc sparc64"
-
-RDEPEND="virtual/glibc
-       dev-libs/popt"
-DEPEND="${RDEPEND}"
-
-src_compile() {
-       ./configure --prefix=/usr --mandir=/usr/share/man || die "configure problem"
-       emake || die "compile problem"
-}
-
-src_install () {
-       dobin src/distcc src/distccd
-       doman man/*.1
-       dodoc README
-}
diff --git a/sys-devel/distcc/distcc-0.7.ebuild b/sys-devel/distcc/distcc-0.7.ebuild
deleted file mode 100644 (file)
index be1b4fe..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-# Copyright 2002 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/distcc-0.7.ebuild,v 1.2 2002/08/14 11:56:44 murphy Exp $
-
-HOMEPAGE="http://distcc.samba.org"
-SRC_URI="http://distcc.samba.org/ftp/distcc/distcc-${PV}.tar.gz"
-DESCRIPTION="a program to distribute compilation of C code across several machines on a network"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="x86 sparc sparc64"
-
-RDEPEND="virtual/glibc
-       dev-libs/popt"
-DEPEND="${RDEPEND}"
-
-src_compile() {
-       ./configure --prefix=/usr --mandir=/usr/share/man || die "configure problem"
-       emake || die "compile problem"
-}
-
-src_install () {
-       dobin src/distcc src/distccd
-       doman man/*.1
-       dodoc README
-}
diff --git a/sys-devel/distcc/distcc-0.8.ebuild b/sys-devel/distcc/distcc-0.8.ebuild
deleted file mode 100644 (file)
index 84d8c83..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-# Copyright 2002 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/distcc-0.8.ebuild,v 1.1 2002/08/20 17:33:28 blizzy Exp $
-
-HOMEPAGE="http://distcc.samba.org"
-SRC_URI="http://distcc.samba.org/ftp/distcc/distcc-${PV}.tar.gz"
-DESCRIPTION="a program to distribute compilation of C code across several machines on a network"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="x86"
-
-RDEPEND="virtual/glibc
-       dev-libs/popt"
-DEPEND="${RDEPEND}"
-
-src_compile() {
-       ./configure --prefix=/usr --mandir=/usr/share/man || die "configure problem"
-       emake || die "compile problem"
-}
-
-src_install () {
-       dobin src/distcc src/distccd
-       doman man/*.1
-       dodoc README
-}
diff --git a/sys-devel/distcc/files/digest-distcc-0.5 b/sys-devel/distcc/files/digest-distcc-0.5
deleted file mode 100644 (file)
index 72d4343..0000000
+++ /dev/null
@@ -1 +0,0 @@
-MD5 e3c7054c2bd766b891b1ad9e779d3f7e distcc-0.5.tar.gz 239922
diff --git a/sys-devel/distcc/files/digest-distcc-0.6 b/sys-devel/distcc/files/digest-distcc-0.6
deleted file mode 100644 (file)
index a93beee..0000000
+++ /dev/null
@@ -1 +0,0 @@
-MD5 3bafb6e4af5045e0356ec4ec73793ba6 distcc-0.6.tar.gz 266650
diff --git a/sys-devel/distcc/files/digest-distcc-0.7 b/sys-devel/distcc/files/digest-distcc-0.7
deleted file mode 100644 (file)
index abcc9e7..0000000
+++ /dev/null
@@ -1 +0,0 @@
-MD5 955fba5feab8ed99defbeda8da4e4415 distcc-0.7.tar.gz 392832
diff --git a/sys-devel/distcc/files/digest-distcc-0.8 b/sys-devel/distcc/files/digest-distcc-0.8
deleted file mode 100644 (file)
index 6662ba3..0000000
+++ /dev/null
@@ -1 +0,0 @@
-MD5 2bc110319a2bc99e585812b14e07d462 distcc-0.8.tar.gz 397208
diff --git a/sys-devel/distcc/files/distccd b/sys-devel/distcc/files/distccd
new file mode 100644 (file)
index 0000000..68d7571
--- /dev/null
@@ -0,0 +1,28 @@
+#!/sbin/runscript
+
+depend() {
+       need net
+}
+
+start() {
+       rm -rf /var/tmp/distccd.pid
+       ebegin "Starting distccd"
+       start-stop-daemon --start --quiet --startas /usr/bin/distccd \
+               -c nobody --pidfile /var/tmp/distccd.pid \
+               -- --pid-file /var/tmp/distccd.pid
+       eend $? "Failed to Start distccd"
+}
+
+stop() {
+       ebegin "Stopping distccd"
+       start-stop-daemon --stop --quiet --pidfile /var/tmp/distccd.pid
+       rm -rf /var/tmp/distccd.pid
+       eend $? "Failed to Stop distccd"
+}
+
+restart() {
+       ebegin "Restarting distccd"
+       svc_stop
+       svc_start
+       eend $? "Failed to Restart distccd"
+}