summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorshattered <shattered@pkgsrc.org>2012-04-13 21:17:38 +0000
committershattered <shattered@pkgsrc.org>2012-04-13 21:17:38 +0000
commitd0f4d8adc1372d938ae27e326db03293eb909f11 (patch)
tree586f8a90ba72a822a8e593194f0eac29ba0caaf9 /devel
parent01446fbd0e0d68ac64b2e1548e79e2c951097e62 (diff)
downloadpkgsrc-d0f4d8adc1372d938ae27e326db03293eb909f11.tar.gz
PR/43732 -- add svnserve.sh rc.d script (untested).
Diffstat (limited to 'devel')
-rw-r--r--devel/subversion-base/Makefile6
-rw-r--r--devel/subversion-base/PLIST3
-rw-r--r--devel/subversion/files/svnserve.sh23
3 files changed, 29 insertions, 3 deletions
diff --git a/devel/subversion-base/Makefile b/devel/subversion-base/Makefile
index a2f0844e487..2e88f649ea3 100644
--- a/devel/subversion-base/Makefile
+++ b/devel/subversion-base/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.75 2011/12/02 07:13:48 sbd Exp $
+# $NetBSD: Makefile,v 1.76 2012/04/13 21:17:38 shattered Exp $
PKGNAME= subversion-base-${SVNVER}
-PKGREVISION= 3
+PKGREVISION= 4
COMMENT= Version control system, base programs and libraries
PKG_INSTALLATION_TYPES= overwrite pkgviews
@@ -54,6 +54,8 @@ SUBST_FILES.paths= contrib/cgi/tweak-log.cgi
SUBST_SED.paths= -e "s|/usr/local/bin/|${PREFIX}/bin|g"
SUBST_MESSAGE.paths= Fixing hardcoded /usr/local/bin paths.
+RCD_SCRIPTS= svnserve
+
post-install:
${INSTALL_DATA_DIR} ${DESTDIR}${SVNDOC}
cd ${WRKSRC} && ${INSTALL_DATA} INSTALL README ${DESTDIR}${SVNDOC}
diff --git a/devel/subversion-base/PLIST b/devel/subversion-base/PLIST
index 73822acfd45..8b24f5da751 100644
--- a/devel/subversion-base/PLIST
+++ b/devel/subversion-base/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.19 2009/06/14 17:49:15 joerg Exp $
+@comment $NetBSD: PLIST,v 1.20 2012/04/13 21:17:38 shattered Exp $
bin/svn
bin/svnadmin
bin/svndumpfilter
@@ -77,6 +77,7 @@ share/doc/subversion/README
share/doc/subversion/cvs-crossover-guide.html
share/doc/subversion/lj_article.txt
share/doc/subversion/svn-best-practices.html
+share/examples/rc.d/svnserve
share/examples/subversion/backup/hot-backup.py
share/examples/subversion/cgi/tweak-log.cgi
share/examples/subversion/hook-scripts/commit-access-control.cfg.example
diff --git a/devel/subversion/files/svnserve.sh b/devel/subversion/files/svnserve.sh
new file mode 100644
index 00000000000..8a9cfc7ea7a
--- /dev/null
+++ b/devel/subversion/files/svnserve.sh
@@ -0,0 +1,23 @@
+#!@RCD_SCRIPTS_SHELL@
+
+# PROVIDE: svnserve
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+
+. /etc/rc.subr
+
+name="svnserve"
+rcvar=${name}
+command="/usr/pkg/bin/${name}"
+svnserve_user="svn"
+pidfile="/var/run/${name}.pid"
+
+start_precmd="${name}_prestart"
+
+svnserve_prestart()
+{
+ rc_flags="-d --pid-file=${pidfile} ${rc_flags}"
+}
+
+load_rc_config $name
+run_rc_command "$1"