pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/opentracker opentracker: add some options and an r...
details: https://anonhg.NetBSD.org/pkgsrc/rev/dc4d7969b3a0
branches: trunk
changeset: 441981:dc4d7969b3a0
user: wiz <wiz%pkgsrc.org@localhost>
date: Mon Nov 16 08:41:25 2020 +0000
description:
opentracker: add some options and an rc.d script
Install the configuration example file.
Bump PKGREVISION.
diffstat:
net/opentracker/Makefile | 18 +++++++++++++-----
net/opentracker/PLIST | 3 ++-
net/opentracker/files/opentracker.sh | 17 +++++++++++++++++
3 files changed, 32 insertions(+), 6 deletions(-)
diffs (65 lines):
diff -r 1320d2adc772 -r dc4d7969b3a0 net/opentracker/Makefile
--- a/net/opentracker/Makefile Mon Nov 16 08:25:40 2020 +0000
+++ b/net/opentracker/Makefile Mon Nov 16 08:41:25 2020 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.2 2020/11/15 10:29:04 wiz Exp $
+# $NetBSD: Makefile,v 1.3 2020/11/16 08:41:25 wiz Exp $
DISTNAME= opentracker-0.0.20180526
+PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= # https://erdgeist.org/gitweb/opentracker/
@@ -12,12 +13,19 @@
MAKE_FLAGS+= LIBOWFAT_HEADERS=${PREFIX}/include/libowfat
MAKE_FLAGS+= LIBOWFAT_LIBRARY=${PREFIX}/lib
MAKE_FLAGS+= BINDIR=${DESTDIR}${PREFIX}/bin
-# turn on IPv6-only support
-#MAKE_FLAGS+= -DWANT_V6
+
+.include "options.mk"
+
+INSTALLATION_DIRS+= bin ${EGDIR}
+
+WRKSRC= ${WRKDIR}/opentracker
-INSTALLATION_DIRS+= bin
+EGDIR= share/examples/opentracker
+CONF_FILES= ${EGDIR}/opentracker.conf.sample ${PKG_SYSCONFDIR}/opentracker.conf
+RCD_SCRIPTS= opentracker
-WRKSRC= ${WRKDIR}/opentracker
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/opentracker.conf.sample ${DESTDIR}${PREFIX}/${EGDIR}
.include "../../devel/libowfat/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 1320d2adc772 -r dc4d7969b3a0 net/opentracker/PLIST
--- a/net/opentracker/PLIST Mon Nov 16 08:25:40 2020 +0000
+++ b/net/opentracker/PLIST Mon Nov 16 08:41:25 2020 +0000
@@ -1,2 +1,3 @@
-@comment $NetBSD: PLIST,v 1.1 2020/11/15 10:28:05 wiz Exp $
+@comment $NetBSD: PLIST,v 1.2 2020/11/16 08:41:25 wiz Exp $
bin/opentracker
+share/examples/opentracker/opentracker.conf.sample
diff -r 1320d2adc772 -r dc4d7969b3a0 net/opentracker/files/opentracker.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/opentracker/files/opentracker.sh Mon Nov 16 08:41:25 2020 +0000
@@ -0,0 +1,17 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: opentracker.sh,v 1.1 2020/11/16 08:41:25 wiz Exp $
+#
+
+# PROVIDE: opentracker
+# REQUIRE: DAEMON LOGIN
+
+. /etc/rc.subr
+
+name="vsftpd"
+rcvar=$name
+command="@PREFIX@/bin/${name}"
+command_args="&"
+
+load_rc_config $name
+run_rc_command "$1"
Home |
Main Index |
Thread Index |
Old Index