FreeBSD Bugzilla – Attachment 50390 Details for
Bug 76789
Update port: sysutils/LPRngTool - fix packing list
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
lprngtool.diff
lprngtool.diff (text/plain), 1.72 KB, created by
Florent Thoumie
on 2005-01-28 11:00:36 UTC
(
hide
)
Description:
lprngtool.diff
Filename:
MIME Type:
Creator:
Florent Thoumie
Created:
2005-01-28 11:00:36 UTC
Size:
1.72 KB
patch
obsolete
>diff -ruN LPRngTool.orig/Makefile LPRngTool/Makefile >--- LPRngTool.orig/Makefile Fri Jan 28 10:37:36 2005 >+++ LPRngTool/Makefile Fri Jan 28 11:43:42 2005 >@@ -28,21 +28,18 @@ > > #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 > >@@ -60,5 +57,10 @@ > exit 1; \ > 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> >diff -ruN LPRngTool.orig/pkg-plist LPRngTool/pkg-plist >--- LPRngTool.orig/pkg-plist Fri Jan 28 10:37:36 2005 >+++ LPRngTool/pkg-plist Fri Jan 28 10:37:46 2005 >@@ -1,4 +1,3 @@ >-etc/lprngtool.conf.sample > bin/lprngtool > libexec/filters/atalkprint > libexec/filters/ncpprint >@@ -7,3 +6,8 @@ > 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 76789
: 50390