Update pmk to run pmksetup by default and remove pmk.conf only if it's the
same as the default config. Bump port version.
This commit is contained in:
parent
5f0fb603ff
commit
2d0db4595d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=122793
3 changed files with 31 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= pmk
|
||||
PORTVERSION= 0.8.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= pmk
|
||||
|
@ -14,6 +15,8 @@ MASTER_SITE_SUBDIR= pmk
|
|||
MAINTAINER= seanc@FreeBSD.org
|
||||
COMMENT= Pre Make Kit, a sane replacement for autoconf
|
||||
|
||||
PKGINSTALL= ${WRKDIR}/pkg-install
|
||||
|
||||
MAN1= pmk.1 pmkscan.1 pmkinstall.1
|
||||
MAN5= pmk.conf.5 pmkfile.5
|
||||
MAN8= pmksetup.8
|
||||
|
@ -21,4 +24,13 @@ MAN8= pmksetup.8
|
|||
do-configure:
|
||||
cd ${WRKSRC}; SYSCONFDIR=${PREFIX}/etc ./pmkcfg.sh
|
||||
|
||||
post-build:
|
||||
@${CAT} ${PKGDIR}/pkg-install | ${SED} -e 's,%%PREFIX%%,${PREFIX},g' > ${PKGINSTALL}
|
||||
|
||||
post-install:
|
||||
@${TRUE}
|
||||
.if !defined(PACKAGE_BUILDING)
|
||||
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
16
devel/pmk/pkg-install
Normal file
16
devel/pmk/pkg-install
Normal file
|
@ -0,0 +1,16 @@
|
|||
# $FreeBSD#
|
||||
|
||||
if [ "$2" != "POST-INSTALL" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
pmkconf=%%PREFIX%%/etc/pmk/pmk.conf
|
||||
|
||||
if [ -f $pmkconf ]; then
|
||||
mv -f ${pmkconf} ${pmkconf}.bak
|
||||
%%PREFIX%%/sbin/pmksetup
|
||||
mv -f ${pmkconf} ${pmkconf}.dist
|
||||
mv -f ${pmkconf}.bak ${pmkconf}
|
||||
fi
|
||||
|
||||
exit 0
|
|
@ -2,6 +2,9 @@ bin/pmk
|
|||
bin/pmkinstall
|
||||
bin/pmkpc
|
||||
bin/pmkscan
|
||||
@unexec if cmp -s %D/etc/pmk/pmk.conf %D/etc/pmk/pmk.conf.dist; then rm -f %D/etc/pmk/pmk.conf; fi
|
||||
etc/pmk/pmk.conf.dist
|
||||
@unexec rmdir %D/etc/pmk 2>/dev/null || true
|
||||
sbin/pmksetup
|
||||
share/pmk/pmk.conf.sample
|
||||
share/pmk/pmkcfgtool.dat
|
||||
|
|
Loading…
Reference in a new issue