Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Oct 2009 21:43:41 +0100 (CET)
From:      Petr Rehor <prehor@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Petr Rehor <prehor@gmail.com>
Subject:   ports/140152: [patch] security/amavisd-milter: respect ${PREFIX} and ${LOCALBASE}
Message-ID:  <200910312043.n9VKhf8l003145@199.106.broadband4.iol.cz>
Resent-Message-ID: <200910312050.n9VKo1UD075220@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         140152
>Category:       ports
>Synopsis:       [patch] security/amavisd-milter: respect ${PREFIX} and ${LOCALBASE}
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 31 20:50:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Petr Rehor
>Release:        FreeBSD 7.1-RELEASE-p6 i386
>Organization:
>Environment:
System: FreeBSD charon.rx.cz 7.1-RELEASE-p6 FreeBSD 7.1-RELEASE-p6 #0: Tue Jun 9 16:26:47 UTC 2009 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386
>Description:
The port assumes that LOCALBASE is /usr/local. This patch rather use PREFIX
and LOCALBASE variables.
>How-To-Repeat:
>Fix:
--- pam_abl.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/security/pam_abl/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- Makefile	22 Aug 2009 00:35:00 -0000	1.4
+++ Makefile	31 Oct 2009 20:31:06 -0000
@@ -44,6 +44,7 @@
 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}|'
 
Index: files/patch-Makefile
===================================================================
RCS file: /home/ncvs/ports/security/pam_abl/files/patch-Makefile,v
retrieving revision 1.1
diff -u -r1.1 patch-Makefile
--- files/patch-Makefile	1 Sep 2006 18:34:03 -0000	1.1
+++ files/patch-Makefile	31 Oct 2009 20:31:06 -0000
@@ -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
--- pam_abl.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910312043.n9VKhf8l003145>