diff options
author | glewis <glewis@FreeBSD.org> | 2005-04-05 03:44:02 +0800 |
---|---|---|
committer | glewis <glewis@FreeBSD.org> | 2005-04-05 03:44:02 +0800 |
commit | 624db0d80e2fb2de287146f55e383b3907d55a9b (patch) | |
tree | e02656a9c7100e491d8f94a7fc603d5f03e6cc19 /astro/squeuer | |
parent | 8bb42b5d31771ec539f390111fb326ee0f5a2c8b (diff) | |
download | freebsd-ports-gnome-624db0d80e2fb2de287146f55e383b3907d55a9b.tar.gz freebsd-ports-gnome-624db0d80e2fb2de287146f55e383b3907d55a9b.tar.zst freebsd-ports-gnome-624db0d80e2fb2de287146f55e383b3907d55a9b.zip |
. Don't hardcode /usr/local in pkg-message, use %%LOCALBASE%% and replace
it appropriately.
Found by: portlint
Diffstat (limited to 'astro/squeuer')
-rw-r--r-- | astro/squeuer/Makefile | 4 | ||||
-rw-r--r-- | astro/squeuer/files/pkg-message.in (renamed from astro/squeuer/pkg-message) | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/astro/squeuer/Makefile b/astro/squeuer/Makefile index e1f4498489ee..5ac34672a3b7 100644 --- a/astro/squeuer/Makefile +++ b/astro/squeuer/Makefile @@ -20,6 +20,8 @@ USE_PERL5_RUN= yes MAN8= squeuer.8 MAN5= squeuer.conf.5 +PKGMESSAGE= ${WRKDIR}/pkg-message + # These must be writeable by the user "squeuer" SPOOLDIR?= /var/spool/squeuer LOGDIR?= /var/spool/squeuer @@ -32,6 +34,8 @@ do-configure: -e "s:%%LOGDIR%%:${LOGDIR}:g" \ -e "s:%%PIDDIR%%:${PIDDIR}:g" $$i; \ done + ${SED} -e "s:%%LOCALBASE%%:${LOCALBASE}:g" \ + ${FILESDIR}/pkg-message.in > ${PKGMESSAGE} do-install: ${INSTALL_SCRIPT} ${WRKSRC}/bin/squeuer.pl ${PREFIX}/sbin/squeuer diff --git a/astro/squeuer/pkg-message b/astro/squeuer/files/pkg-message.in index 787a01e835e3..8818725d4995 100644 --- a/astro/squeuer/pkg-message +++ b/astro/squeuer/files/pkg-message.in @@ -2,7 +2,7 @@ ============================================================= To use SQueuer with the setiathome port, the file - /usr/local/etc/rc.setiathome.conf + %%LOCALBASE%%/etc/rc.setiathome.conf must be modified (specifically the seti_proxy_server setting) and setiathome restarted. |