net/msoak: Sanitize MANPREFIX
Approved by: portmgr (blanket)
This commit is contained in:
parent
ce91a7749c
commit
dfdd03f9ff
3 changed files with 25 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
PORTNAME= msoak
|
||||
DISTVERSION= 0.8
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net
|
||||
|
||||
MAINTAINER= ports@jpmens.net
|
||||
|
@ -19,7 +20,7 @@ GH_ACCOUNT= jpmens
|
|||
CFLAGS+= -I${LUA_INCDIR}
|
||||
LDFLAGS+= -llua-${LUA_VER} -lmosquitto -lconfig
|
||||
MAKE_ARGS+= CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
|
||||
BINDIR=${PREFIX}/bin MANDIR=${MANPREFIX}/man
|
||||
BINDIR=${PREFIX}/bin MANDIR=${PREFIX}/share/man
|
||||
|
||||
post-install:
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/msoak
|
||||
|
|
22
net/msoak/files/patch-Makefile
Normal file
22
net/msoak/files/patch-Makefile
Normal file
|
@ -0,0 +1,22 @@
|
|||
--- Makefile.orig 2024-01-22 15:40:56 UTC
|
||||
+++ Makefile
|
||||
@@ -4,6 +4,8 @@ LDFLAGS=-L /usr/local/lib -lmosquitto -lconfig
|
||||
|
||||
CFLAGS=-Wall -Werror -I.
|
||||
LDFLAGS=-L /usr/local/lib -lmosquitto -lconfig
|
||||
+BINDIR?=
|
||||
+MANDIR?=
|
||||
|
||||
detect:
|
||||
@echo "detected: $(OS)"
|
||||
@@ -35,9 +37,7 @@ freebsd:
|
||||
|
||||
freebsd:
|
||||
@$(MAKE) $(TARGET) CFLAGS="$(CFLAGS) -I/usr/local/include -I/usr/local/include/lua53/" \
|
||||
- LDFLAGS="$(LDFLAGS) -llua-5.3" \
|
||||
- BINDIR=/usr/local/bin \
|
||||
- MANDIR=/usr/local/man
|
||||
+ LDFLAGS="$(LDFLAGS) -llua-5.3"
|
||||
|
||||
openbsd:
|
||||
@$(MAKE) $(TARGET) CFLAGS="$(CFLAGS) -I/usr/local/include -I/usr/local/include/lua-5.3/" \
|
|
@ -1,4 +1,4 @@
|
|||
bin/msoak
|
||||
man/man1/msoak.1.gz
|
||||
share/man/man1/msoak.1.gz
|
||||
%%EXAMPLESDIR%%/example.config
|
||||
%%EXAMPLESDIR%%/example.lua
|
||||
|
|
Loading…
Reference in a new issue