pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/icecast Use the bsd.pkg.install.mk framework to ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/956a0b6d0d37
branches:  trunk
changeset: 462317:956a0b6d0d37
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Tue Sep 30 10:30:33 2003 +0000

description:
Use the bsd.pkg.install.mk framework to install the startup shell script
and configuration files into PKG_SYSCONFDIR.

Patch provided by David Ferlier in PR pkg/20940, with more changes by me.
Bump package revision to 1.

diffstat:

 audio/icecast/Makefile         |  15 ++++++++++++++-
 audio/icecast/PLIST            |  16 +++++++---------
 audio/icecast/distinfo         |   3 ++-
 audio/icecast/files/icecast.sh |  27 +++++++++++++++++++++++++++
 audio/icecast/patches/patch-ac |  14 ++++++++++++++
 5 files changed, 64 insertions(+), 11 deletions(-)

diffs (130 lines):

diff -r 04f93d6f6bf4 -r 956a0b6d0d37 audio/icecast/Makefile
--- a/audio/icecast/Makefile    Tue Sep 30 10:18:57 2003 +0000
+++ b/audio/icecast/Makefile    Tue Sep 30 10:30:33 2003 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.11 2003/09/09 17:11:16 jmmv Exp $
+# $NetBSD: Makefile,v 1.12 2003/09/30 10:30:33 xtraeme Exp $
 #
 
 DISTNAME=      icecast-1.3.12
+PKGREVISION=   1
 CATEGORIES=    audio
 MASTER_SITES=  http://www.icecast.org/releases/
 
@@ -11,6 +12,11 @@
 
 USE_BUILDLINK2=                # defined
 GNU_CONFIGURE=         # defined
+USE_PKGINSTALL=                yes
+
+RCD_SCRIPTS=           icecast
+PKG_SYSCONFSUBDIR=     icecast
+
 CONFIGURE_ARGS+=       --with-readline \
                        --with-libwrap \
                        --with-python
@@ -22,6 +28,13 @@
 LIBS+=                 -lutil
 PTHREAD_OPTS+=         native
 
+EGDIR=                 ${PREFIX}/share/examples/icecast
+FILES=                 groups.aut mounts.aut users.aut icecast.conf
+
+.for F in ${FILES}
+CONF_FILES+=           ${EGDIR}/${F}.dist ${PKG_SYSCONFDIR}/${F}
+.endfor
+                       
 .include "../../devel/readline/buildlink2.mk"
 .include "../../lang/python/application.mk"
 .include "../../security/tcp_wrappers/buildlink2.mk"
diff -r 04f93d6f6bf4 -r 956a0b6d0d37 audio/icecast/PLIST
--- a/audio/icecast/PLIST       Tue Sep 30 10:18:57 2003 +0000
+++ b/audio/icecast/PLIST       Tue Sep 30 10:30:33 2003 +0000
@@ -1,10 +1,11 @@
-@comment $NetBSD: PLIST,v 1.3 2002/06/26 10:29:33 seb Exp $
+@comment $NetBSD: PLIST,v 1.4 2003/09/30 10:30:33 xtraeme Exp $
 bin/icecast
-etc/icecast/groups.aut.dist
-etc/icecast/icecast.conf.dist
-etc/icecast/mounts.aut.dist
-etc/icecast/users.aut.dist
+etc/rc.d/icecast
 share/doc/icecast/manual.html
+share/examples/icecast/groups.aut.dist
+share/examples/icecast/icecast.conf.dist
+share/examples/icecast/mounts.aut.dist
+share/examples/icecast/users.aut.dist
 share/icecast/templates/306.html
 share/icecast/templates/400.html
 share/icecast/templates/403.html
@@ -24,8 +25,5 @@
 share/icecast/templates/mountlist.html
 share/icecast/templates/statistics.html
 @dirrm share/icecast/templates
-@exec ${MKDIR} %D/share/icecast/static
-@dirrm share/icecast/static
-@dirrm share/icecast
+@dirrm share/examples/icecast
 @dirrm share/doc/icecast
-@dirrm etc/icecast
diff -r 04f93d6f6bf4 -r 956a0b6d0d37 audio/icecast/distinfo
--- a/audio/icecast/distinfo    Tue Sep 30 10:18:57 2003 +0000
+++ b/audio/icecast/distinfo    Tue Sep 30 10:30:33 2003 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.6 2003/09/09 17:11:16 jmmv Exp $
+$NetBSD: distinfo,v 1.7 2003/09/30 10:30:33 xtraeme Exp $
 
 SHA1 (icecast-1.3.12.tar.gz) = bacb760390453718de536b85979ff3a9a73c7710
 Size (icecast-1.3.12.tar.gz) = 269822 bytes
 SHA1 (patch-aa) = 169202f563e4e2812d8d532264dcdb4f9ffc8df2
 SHA1 (patch-ab) = a1039a552874ffcfc8fc25b867e259bf14aa46cc
+SHA1 (patch-ac) = 95454920dea0bb01a467920dd07b2a4f889bd3be
diff -r 04f93d6f6bf4 -r 956a0b6d0d37 audio/icecast/files/icecast.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/icecast/files/icecast.sh    Tue Sep 30 10:30:33 2003 +0000
@@ -0,0 +1,27 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# PROVIDE: icecast
+# REQUIRE: DAEMON LOGIN network
+
+
+name="icecast"
+command="@PREFIX@/bin/${name}"
+mainconfigfile="@PKG_SYSCONFDIR@/${name}.conf"
+icecast_flags="-c ${mainconfigfile} -d @PKG_SYSCONFDIR@ -b"
+sig_stop="KILL"
+
+
+. /etc/rc.subr
+
+
+pidfile="/var/run/${name}.pid"
+required_files="${mainconfigfile}"
+
+
+load_rc_config $name
+run_rc_command "$1"
+
+
+if [ "$1" != "stop" ]; then
+       echo $(check_process $command) > $pidfile
+fi
diff -r 04f93d6f6bf4 -r 956a0b6d0d37 audio/icecast/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/icecast/patches/patch-ac    Tue Sep 30 10:30:33 2003 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-ac,v 1.1 2003/09/30 10:30:33 xtraeme Exp $
+
+--- conf/Makefile.in.orig      2003-09-30 12:09:22.000000000 +0200
++++ conf/Makefile.in   2003-09-30 12:09:58.000000000 +0200
+@@ -83,7 +83,8 @@
+ 
+ AUTOMAKE_OPTIONS = foreign
+ 
+-etcdir = $(ICECAST_ETCDIR_INST)
++EGDIR = $(prefix)/share/examples/icecast
++etcdir = $(EGDIR)
+ etc_DATA = groups.aut.dist icecast.conf.dist mounts.aut.dist users.aut.dist
+ 
+ EXTRA_DIST = $(etc_DATA)



Home | Main Index | Thread Index | Old Index