- Respect PREFIX
PR: 140152 Submitted by: Petr Rehor <prehor@gmail.com> (maintainer)
This commit is contained in:
parent
59056fc528
commit
7021596597
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=244536
2 changed files with 3 additions and 2 deletions
|
@ -44,6 +44,7 @@ SUB_LIST+= ETCPREFIX=${ETCPREFIX}
|
|||
SED_SCRIPT= -e 's|<db.h>|<${BDB_INCLUDE_DIR}/db.h>|' \
|
||||
-e 's|-ldb|-l${BDB_LIB_NAME}|' \
|
||||
-e 's|%%PREFIX%%|${PREFIX}|' \
|
||||
-e 's|%%LOCALBASE%%|${LOCALBASE}|' \
|
||||
-e 's|%%ETCPREFIX%%|${ETCPREFIX}|' \
|
||||
-e 's|%%PAMABLDB%%|${PAMABLDB}|'
|
||||
|
||||
|
|
|
@ -9,11 +9,11 @@
|
|||
-CONFDIR=/etc/security
|
||||
-DBDIR=/var/lib/abl
|
||||
-LIBS=-ldb -lpthread
|
||||
+CFLAGS=-Wall -fPIC -I/usr/local/include
|
||||
+CFLAGS=-Wall -fPIC -I%%PREFIX%%/include -I%%LOCALBASE%%/include
|
||||
+PAMDIR=%%PREFIX%%/lib
|
||||
+CONFDIR=%%ETCPREFIX%%/etc
|
||||
+DBDIR=%%PAMABLDB%%
|
||||
+LIBS=-L/usr/local/lib -ldb -lpthread
|
||||
+LIBS=-L%%PREFIX%%/lib -L%%LOCALBASE%% -ldb -lpthread
|
||||
MODULE=pam_abl.so
|
||||
OBJ=pam_abl.o log.o config.o rule.o
|
||||
SUBDIRS=tools
|
||||
|
|
Loading…
Reference in a new issue