mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-20 20:09:11 +00:00
- Fix packing list.
- Respect SYSCONFDIR in pkg-plist. - Remove useless test on PREFIX. - Remove useless HAS_CONFIGURE's. PR: ports/76789 Submitted by: Florent Thoumie <flz@xbsd.org> Approved by: maintainer timeout (2 weeks)
This commit is contained in:
parent
0fa575ea70
commit
fc0222dad2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=128842
@ -28,21 +28,18 @@ BUILD_DEPENDS= \
|
||||
|
||||
#RUN_DEPENDS= ifhp:${PORTSDIR}/print/ifhp
|
||||
|
||||
.if defined(PREFIX)
|
||||
CONFIGURE_ARGS+= --prefix="${PREFIX}"
|
||||
.endif
|
||||
.if defined(SYSCONFDIR)
|
||||
CONFIGURE_ARGS+= --with-sysconfdir="${SYSCONFDIR}"
|
||||
PLIST_SUB+= CWD="" SYSCONFDIR="${SYSCONFDIR:S,^/,,}"
|
||||
.else
|
||||
SYSCONFDIR= ${PREFIX}/etc
|
||||
PLIST_SUB+= CWD="@comment " SYSCONFDIR="${SYSCONFDIR:S,^${PREFIX}/,,}"
|
||||
.endif
|
||||
|
||||
HAS_CONFIGURE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
INSTALLS_SHLIB= yes
|
||||
|
||||
HAS_CONFIGURE= yes
|
||||
|
||||
CONFIGURE_ARGS+=\
|
||||
--with-spool_directory=/var/spool/lpd
|
||||
CONFIGURE_ARGS+= --with-spool_directory=/var/spool/lpd \
|
||||
--with-sysconfdir="${SYSCONFDIR}"
|
||||
|
||||
MAN1=lprngtool.1
|
||||
|
||||
@ -61,4 +58,9 @@ pre-everything::
|
||||
fi
|
||||
@${ECHO_MSG} "Configuring with '${CONFIGURE_ARGS}'"
|
||||
|
||||
post-install:
|
||||
@if [ ! -f ${SYSCONFDIR}/lprngtool.conf ]; then \
|
||||
${CP} ${SYSCONFDIR}/lprngtool.conf.sample ${SYSCONFDIR}/lprngtool.conf; \
|
||||
fi
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,4 +1,3 @@
|
||||
etc/lprngtool.conf.sample
|
||||
bin/lprngtool
|
||||
libexec/filters/atalkprint
|
||||
libexec/filters/ncpprint
|
||||
@ -7,3 +6,8 @@ libexec/filters/printerdb
|
||||
libexec/filters/testpage.asc
|
||||
libexec/filters/testpage.ps
|
||||
libexec/filters/testpage-a4.ps
|
||||
@unexec rmdir %D/libexec/filters 2> /dev/null || true
|
||||
%%CWD%%@cwd /
|
||||
@unexec if cmp -s %D/%%SYSCONFDIR%%/lprngtool.conf %D/%%SYSCONFDIR%%/lprngtool.conf.sample; then rm -f %D/%%SYSCONFDIR%%/lprngtool.conf; fi
|
||||
%%SYSCONFDIR%%/lprngtool.conf.sample
|
||||
@exec [ -f %B/lprngtool.conf ] || cp %B/%f %B/lprngtool.conf
|
||||
|
Loading…
Reference in New Issue
Block a user