mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-29 10:18:30 +00:00
Honor PREFIX when patching startup script
Submitted by: MAINTAINER
This commit is contained in:
parent
eb1af203eb
commit
530a158dff
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=79913
@ -32,6 +32,9 @@ CONFIGURE_ARGS+= --enable-debug
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
|
||||
@${REINPLACE_CMD} -e 's|/usr/bin/mman|${PREFIX}/bin/mman|g' \
|
||||
-e 's|/etc/mman/config.xml|${PREFIX}/etc/mman.xml|g' \
|
||||
${WRKSRC}/scripts/mman.init
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/mman ${PREFIX}/bin
|
||||
|
@ -1,14 +0,0 @@
|
||||
--- scripts/mman.init.orig Sun Apr 27 18:38:32 2003
|
||||
+++ scripts/mman.init Sun Apr 27 18:38:54 2003
|
||||
@@ -1,9 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
-PROGRAM=/usr/bin/mman
|
||||
+PROGRAM=/usr/local/bin/mman
|
||||
PIDFILE=/var/run/mman.pid
|
||||
LOGFILE=/var/log/mman.log
|
||||
-CONFIG=/etc/mman/config.xml
|
||||
+CONFIG=/usr/local/etc/mman.xml
|
||||
LOGLEVEL=2047
|
||||
case "$1" in
|
||||
start|--start)
|
Loading…
Reference in New Issue
Block a user