Bug 179190 - [PATCH] Added rc.d script for irc/znc port
Summary: [PATCH] Added rc.d script for irc/znc port
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: William Grzybowski
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-02 06:10 UTC by nukama
Modified: 2013-06-27 13:40 UTC (History)
0 users

See Also:


Attachments
file.diff (1.34 KB, patch)
2013-06-02 06:10 UTC, nukama
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description nukama 2013-06-02 06:10:00 UTC
rc.d script for starting znc as a service.

Fix: Patch attached with submission follows:
How-To-Repeat: https://redports.org/buildarchive/20130602040201-21978/
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-06-02 06:10:13 UTC
Responsible Changed
From-To: freebsd-ports-bugs->jase

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 William Grzybowski freebsd_committer freebsd_triage 2013-06-27 13:33:19 UTC
Responsible Changed
From-To: jase->wg

I'll take it.
Comment 3 William Grzybowski freebsd_committer freebsd_triage 2013-06-27 13:36:34 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!
Comment 4 dfilter service freebsd_committer freebsd_triage 2013-06-27 13:36:51 UTC
Author: wg
Date: Thu Jun 27 12:36:31 2013
New Revision: 321885
URL: http://svnweb.freebsd.org/changeset/ports/321885

Log:
  irc/znc: add rc.d script
  
  - Add rc.d script
  
  PR:		ports/179190
  Approved by:	maintainer (timeout)

Added:
  head/irc/znc/files/znc.in   (contents, props changed)
Modified:
  head/irc/znc/Makefile

Modified: head/irc/znc/Makefile
==============================================================================
--- head/irc/znc/Makefile	Thu Jun 27 12:27:07 2013	(r321884)
+++ head/irc/znc/Makefile	Thu Jun 27 12:36:31 2013	(r321885)
@@ -14,6 +14,7 @@ LICENSE=	GPLv2
 
 FETCH_ARGS=	-Fpr
 GNU_CONFIGURE=	yes
+USE_RC_SUBR=	znc
 USES=		pkgconfig iconv
 USE_GMAKE=	yes
 WANT_PERL=	yes

Added: head/irc/znc/files/znc.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/irc/znc/files/znc.in	Thu Jun 27 12:36:31 2013	(r321885)
@@ -0,0 +1,36 @@
+#!/bin/sh
+#
+# PROVIDE: znc
+# REQUIRE: LOGIN DAEMON
+# KEYWORD: shutdown
+#
+# Add the following line to /etc/rc.conf to enable znc:
+#
+# znc_enable:       Set to NO by default. Set it to YES to enable it.
+# znc_conf_dir:     Directory where znc configuration
+#                   data is stored.
+#                   Default: %%PREFIX%%/etc/znc
+# znc_user:         The user account znc runs as what
+#                   you want it to be. It uses 'znc' user by
+#                   default. Do not sets it as empty or it will run
+#                   as root.
+#
+
+. /etc/rc.subr
+
+name=znc
+rcvar=${name}_enable
+
+command=%%PREFIX%%/bin/znc
+
+load_rc_config ${name}
+
+: ${znc_enable:="NO"}
+: ${znc_user:="znc"}
+: ${znc_conf_dir="%%PREFIX%%/etc/znc"}
+
+znc_flags=" \
+	${znc_conf_dir:+-d ${znc_conf_dir}} \
+	${znc_flags}"
+
+run_rc_command "$1"
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"