From 840c30e8822f826adfdf67fa8791a964649455a1 Mon Sep 17 00:00:00 2001 From: jmmv Date: Tue, 29 Jul 2003 16:25:56 +0000 Subject: Convert this package to the bsd.pkg.install.mk framework: - Install configuration files under the examples hierarchy. - Use CONF_FILES_PERMS to put the configuration files in place. - Use SUPPORT_FILES_PERMS to put the empty log file in place. - Use RCD_SCRIPTS to handle the rc.d script. While here, add ICBD_OWNER to BUILD_DEFS and use ROOT_USER and ROOT_GROUP where appropiate. As a result, bump PKGREVISION to 1. --- chat/i2cbd/patches/patch-aa | 10 +++++----- chat/i2cbd/patches/patch-ab | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'chat/i2cbd/patches') diff --git a/chat/i2cbd/patches/patch-aa b/chat/i2cbd/patches/patch-aa index c4f0dfabc2e..1e93c9d5bfc 100644 --- a/chat/i2cbd/patches/patch-aa +++ b/chat/i2cbd/patches/patch-aa @@ -1,4 +1,4 @@ -$NetBSD: patch-aa,v 1.1.1.1 2002/11/14 00:59:31 hubertf Exp $ +$NetBSD: patch-aa,v 1.2 2003/07/29 16:25:56 jmmv Exp $ --- config.h.orig Tue Oct 30 20:37:28 2001 +++ config.h @@ -10,10 +10,10 @@ $NetBSD: patch-aa,v 1.1.1.1 2002/11/14 00:59:31 hubertf Exp $ -#define ICBDMOTD "/usr/local/etc/icbd/motd" -#define ICBDHELP "/usr/local/etc/icbd/icbd_help" -#define ACCESS_FILE "/usr/local/etc/icbd/icbd.deny" -+#define USERDB PREFIX "/etc/icbd/userdb.db" -+#define ICBDMOTD PREFIX "/etc/icbd/motd" -+#define ICBDHELP PREFIX "/etc/icbd/icbd_help" -+#define ACCESS_FILE PREFIX "/etc/icbd/icbd.deny" ++#define USERDB PKG_SYSCONFDIR "/userdb.db" ++#define ICBDMOTD PKG_SYSCONFDIR "/motd" ++#define ICBDHELP PKG_SYSCONFDIR "/icbd_help" ++#define ACCESS_FILE PKG_SYSCONFDIR "/icbd.deny" #define ICBDLOG "/var/log/icbd.log" #define PID_FILE "/var/run/icbd.pid" #define INIT_BRICKS 5 /* initial number of bricks to be thrown */ diff --git a/chat/i2cbd/patches/patch-ab b/chat/i2cbd/patches/patch-ab index 88c0879c052..0db81752ab6 100644 --- a/chat/i2cbd/patches/patch-ab +++ b/chat/i2cbd/patches/patch-ab @@ -1,6 +1,6 @@ -$NetBSD: patch-ab,v 1.1.1.1 2002/11/14 00:59:31 hubertf Exp $ +$NetBSD: patch-ab,v 1.2 2003/07/29 16:25:56 jmmv Exp $ ---- config.mk.orig Tue Oct 30 20:50:40 2001 +--- config.mk.orig 2001-10-30 20:50:40.000000000 +0100 +++ config.mk @@ -3,7 +3,6 @@ # For copying and distribution information, see the file COPYING. @@ -10,12 +10,12 @@ $NetBSD: patch-ab,v 1.1.1.1 2002/11/14 00:59:31 hubertf Exp $ BINDIR = ${PREFIX}/sbin MANDIR = ${PREFIX}/man MAN8DIR = ${PREFIX}/man/man8 -@@ -19,7 +18,7 @@ +@@ -19,7 +18,7 @@ EXTRAWARNS = -Wshadow -Wpointer-arith -W # affect portability to some platforms. The others here are irrelevant. BADWARNS = -Wwrite-strings -Wconversion -Waggregate-return -Wredundant-decls DEBUG = -DDEBUG -DVERBOSE -g -CFLAGS = ${WARNS} ${EXTRAWARNS} ${DEBUG} -+CFLAGS = ${WARNS} ${EXTRAWARNS} ${DEBUG} -DPREFIX=\"${PREFIX}\" ++CFLAGS = ${WARNS} ${EXTRAWARNS} ${DEBUG} -DPREFIX=\"${PREFIX}\" -DPKG_SYSCONFDIR=\"${PKG_SYSCONFDIR}\" LDFLAGS = LIBS = -lutil -- cgit v1.2.3