From a63104ab4fbb75eb360803e57d1f41b9210384a2 Mon Sep 17 00:00:00 2001 From: kuriyama Date: Mon, 26 Feb 2007 14:41:04 +0000 Subject: - Unbreak. - Avoid overwriting config files. - Add pkg-message.in. Submitted by: Thomas Sandford PR: ports/109559 --- databases/usogres/Makefile | 11 ++++------- databases/usogres/files/pkg-message.in | 9 +++++++++ 2 files changed, 13 insertions(+), 7 deletions(-) create mode 100644 databases/usogres/files/pkg-message.in (limited to 'databases') diff --git a/databases/usogres/Makefile b/databases/usogres/Makefile index 36e864138dd6..288f3a3f35b7 100644 --- a/databases/usogres/Makefile +++ b/databases/usogres/Makefile @@ -7,20 +7,18 @@ PORTNAME= usogres PORTVERSION= 0.8.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= databases MASTER_SITES= http://usogres.good-day.net/download/ MAINTAINER= kuriyama@FreeBSD.org COMMENT= Real-time backup utility for PostgreSQL -BROKEN= Leaves behind config file on deinstall -DEPRECATED= ${BROKEN} -EXPIRATION_DATE=2007-04-10 - USE_BZIP2= yes GNU_CONFIGURE= yes USE_GMAKE= yes +SUB_FILES= pkg-message +PKGMESSAGE= ${WRKDIR}/pkg-message # To avoid syslogd load, add this parameter. #MAKE_ARGS= NDEBUG=yes @@ -29,7 +27,6 @@ post-patch: cd ${WRKSRC}; ${CP} usogresrc usogresrc.sample post-install: - [ -f ${PREFIX}/etc/usogresrc ] || \ - ${INSTALL_DATA} ${WRKSRC}/usogresrc ${PREFIX}/etc + @${CAT} ${PKGMESSAGE} .include diff --git a/databases/usogres/files/pkg-message.in b/databases/usogres/files/pkg-message.in new file mode 100644 index 000000000000..61f4727f869e --- /dev/null +++ b/databases/usogres/files/pkg-message.in @@ -0,0 +1,9 @@ +A sample configuration file has been installed in + + %%PREFIX%%/etc/usogres.sample + +This file should be copied to + + %%PREFIX%%/etc/usogres + +and edited to suit your desired setup. -- cgit