mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
Stage comms/qpage
The PR wasn't quite right with regards to stage support, so I had to modify it further. The post-install configure file handling was focused on the wrong file. I updated the default name of the qpage configure file in order to use the @sample keyword. I added an entry in UPDATING to let users know they may need to move an existing configure file accordingly. PR: 192120 Submitted by: maintainer (Jeff Blank) Changes by: marino
This commit is contained in:
parent
b6cc11c1fb
commit
a7bb142621
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=363056
9
UPDATING
9
UPDATING
@ -5,6 +5,15 @@ they are unavoidable.
|
||||
You should get into the habit of checking this file for changes each time
|
||||
you update your ports collection, before attempting any port upgrades.
|
||||
|
||||
20140727:
|
||||
AFFECTS: users of comms/qpage
|
||||
AUTHOR: marino@FreeBSD.org
|
||||
|
||||
The default configure file location has changed from
|
||||
${LOCALBASE}/etc/qpage.cf to ${LOCALBASE}/etc/qpage.conf
|
||||
You will likely want to move the old configure file to the new location
|
||||
after updating if it contains custom settings.
|
||||
|
||||
20140725:
|
||||
AFFECTS: users of cad/netgen
|
||||
AUTHOR: stephen@FreeBSD.org
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= qpage
|
||||
PORTVERSION= 3.3
|
||||
PORTREVISION= 7
|
||||
PORTREVISION= 8
|
||||
CATEGORIES= comms
|
||||
MASTER_SITES= http://www.qpage.org/download/
|
||||
EXTRACT_SUFX= .tar.Z
|
||||
@ -17,9 +17,6 @@ GNU_CONFIGURE= yes
|
||||
OPTIONS_DEFINE= IDENT_PATCH
|
||||
IDENT_PATCH_DESC= Disable libwrap ident lookups
|
||||
|
||||
MAN1= qpage.1
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MIDENT_PATCH}
|
||||
@ -69,14 +66,11 @@ post-patch:
|
||||
-e 's,%%WITH_QPAGE_USER%%,${WITH_QPAGE_USER},' \
|
||||
${WRKSRC}/config.input
|
||||
|
||||
post-install:
|
||||
@if [ ! -f ${PREFIX}/etc/qpage-example.cf ]; then \
|
||||
${ECHO_MSG} "Install ${PREFIX}/etc/qpage-example.cf file."; \
|
||||
${INSTALL_DATA} -m 640 ${WRKDIR}/${PORTNAME}-${PORTVERSION}/example.cf \
|
||||
${PREFIX}/etc/qpage-example.cf; \
|
||||
fi
|
||||
${MKDIR} /var/spool/${PORTNAME}
|
||||
${CHOWN} ${WITH_QPAGE_USER}:dialer /var/spool/${PORTNAME}
|
||||
${CHMOD} 0775 /var/spool/${PORTNAME}
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/qpage ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/qpage.man \
|
||||
${STAGEDIR}${MAN1PREFIX}/man/man1/qpage.1
|
||||
${INSTALL_DATA} ${WRKSRC}/example.cf \
|
||||
${STAGEDIR}${PREFIX}/etc/qpage.conf.sample
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
/* Define as the location of the qpage configuration file. */
|
||||
-#define QPAGE_CONFIG "/etc/qpage.cf"
|
||||
+#define QPAGE_CONFIG "%%PREFIX%%/etc/qpage.cf"
|
||||
+#define QPAGE_CONFIG "%%PREFIX%%/etc/qpage.conf"
|
||||
|
||||
/* Define as the location of the lock directory. */
|
||||
#undef DEFAULT_LOCKDIR
|
||||
|
@ -5,7 +5,7 @@
|
||||
# the syntax of the configuration file.
|
||||
#
|
||||
-QPAGE_CONFIG="/etc/qpage.cf"
|
||||
+QPAGE_CONFIG="%%PREFIX%%/etc/qpage.cf"
|
||||
+QPAGE_CONFIG="%%PREFIX%%/etc/qpage.conf"
|
||||
|
||||
|
||||
#
|
||||
|
@ -5,7 +5,7 @@
|
||||
.LP
|
||||
.SH FILES
|
||||
-/etc/qpage.cf
|
||||
+%%PREFIX%%/etc/qpage.cf
|
||||
+%%PREFIX%%/etc/qpage.conf
|
||||
.SH SEE ALSO
|
||||
.B RFC-1861
|
||||
.SH KNOWN BUGS
|
||||
|
@ -1,4 +1,5 @@
|
||||
bin/qpage
|
||||
etc/qpage-example.cf
|
||||
@sample etc/qpage.conf.sample
|
||||
man/man1/qpage.1.gz
|
||||
@exec if [ ! -d /var/spool/qpage ]; then mkdir /var/spool/qpage; chown uucp:dialer /var/spool/qpage; chmod 0775 /var/spool/qpage; fi
|
||||
@unexec if [ -d /var/spool/qpage ]; then rm -rf /var/spool/qpage; fi
|
||||
|
Loading…
Reference in New Issue
Block a user