From e8094ceacc24869162c9b54fee3c653d37e91e4f Mon Sep 17 00:00:00 2001 From: jlam Date: Thu, 21 Sep 2000 14:34:56 +0000 Subject: Install rc.d control script as "pgsql" instead of "pgsql.sh" to comply with how NetBSD's rc.d system interprets script names. Also add appropriate REQUIRE and PROVIDE sections to allow direct use in NetBSD's rc.d system. --- databases/postgresql/Makefile | 4 ++-- databases/postgresql/files/pgsql.sh.tmpl | 9 ++++++--- databases/postgresql/pkg/PLIST | 4 ++-- 3 files changed, 10 insertions(+), 7 deletions(-) (limited to 'databases/postgresql') diff --git a/databases/postgresql/Makefile b/databases/postgresql/Makefile index 2419947b8b7..2394e765897 100644 --- a/databases/postgresql/Makefile +++ b/databases/postgresql/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.53 2000/09/03 09:51:12 wiz Exp $ +# $NetBSD: Makefile,v 1.54 2000/09/21 14:34:56 jlam Exp $ # FreeBSD Id: Makefile,v 1.22 1997/12/24 01:21:37 alex Exp # @@ -92,7 +92,7 @@ post-install: -e "s|@PGHOME@|${PGHOME}|g" \ < ${FILESDIR}/pgsql.sh.tmpl > ${WRKDIR}/pgsql.sh ${INSTALL} -c -o root -g ${PGGROUP} -m 554 \ - ${WRKDIR}/pgsql.sh ${PREFIX}/etc/rc.d/pgsql.sh + ${WRKDIR}/pgsql.sh ${PREFIX}/etc/rc.d/pgsql ${CAT} ${FILESDIR}/exclude ${FILESDIR}/man.tcl ${FILESDIR}/man.tk \ | ${SED} "s,^#.*,," \ diff --git a/databases/postgresql/files/pgsql.sh.tmpl b/databases/postgresql/files/pgsql.sh.tmpl index 9ef0e2228f7..17d9a49fb66 100644 --- a/databases/postgresql/files/pgsql.sh.tmpl +++ b/databases/postgresql/files/pgsql.sh.tmpl @@ -1,9 +1,12 @@ #!/bin/sh - -# $NetBSD: pgsql.sh.tmpl,v 1.7 2000/09/01 23:57:18 wiz Exp $ +# +# $NetBSD: pgsql.sh.tmpl,v 1.8 2000/09/21 14:34:56 jlam Exp $ # FreeBSD Id: pgsql.sh.tmpl,v 1.3 1997/10/05 21:00:49 andreas Exp - +# # pgsql.sh - postgresql startup file for NetBSD +# +# PROVIDE: pgsql +# REQUIRE: DAEMON CMD=${1:-start} USER=@PGUSER@ diff --git a/databases/postgresql/pkg/PLIST b/databases/postgresql/pkg/PLIST index 00c0f98b7df..26d1e4f7d42 100644 --- a/databases/postgresql/pkg/PLIST +++ b/databases/postgresql/pkg/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.15 2000/07/15 01:23:57 jlam Exp $ +@comment $NetBSD: PLIST,v 1.16 2000/09/21 14:34:56 jlam Exp $ ${PGUSER}/.profile.pgsql ${PGUSER}/post-install-notes bin/createdb @@ -23,7 +23,7 @@ bin/postgres bin/postmaster bin/psql bin/vacuumdb -etc/rc.d/pgsql.sh +etc/rc.d/pgsql include/pgsql/access/attnum.h include/pgsql/c.h include/pgsql/commands/trigger.h -- cgit v1.2.3