head	1.2;
access;
symbols
	RELEASE_8_3_0:1.2
	RELEASE_9_0_0:1.2
	RELEASE_7_4_0:1.2
	RELEASE_8_2_0:1.2
	RELEASE_6_EOL:1.2
	RELEASE_8_1_0:1.2
	RELEASE_7_3_0:1.2
	RELEASE_8_0_0:1.1
	RELEASE_7_2_0:1.1
	RELEASE_7_1_0:1.1
	RELEASE_6_4_0:1.1
	RELEASE_5_EOL:1.1
	RELEASE_7_0_0:1.1
	RELEASE_6_3_0:1.1
	PRE_XORG_7:1.1
	RELEASE_4_EOL:1.1
	RELEASE_6_2_0:1.1;
locks; strict;
comment	@# @;


1.2
date	2009.11.20.18.49.02;	author miwi;	state Exp;
branches;
next	1.1;

1.1
date	2006.09.01.18.34.03;	author pav;	state Exp;
branches;
next	;


desc
@@


1.2
log
@- Respect PREFIX

PR:		140152
Submitted by:	Petr Rehor <prehor@@gmail.com> (maintainer)
@
text
@--- Makefile.orig	Wed Oct 12 21:22:25 2005
+++ Makefile	Sun Dec 11 00:29:31 2005
@@@@ -1,11 +1,11 @@@@
 # Makefile
 # $Id: Makefile,v 1.1.1.1 2005/10/12 19:22:25 tagishandy Exp $
 
-CFLAGS=-Wall -fPIC
-PAMDIR=/lib/security
-CONFDIR=/etc/security
-DBDIR=/var/lib/abl
-LIBS=-ldb -lpthread
+CFLAGS=-Wall -fPIC -I%%PREFIX%%/include -I%%LOCALBASE%%/include
+PAMDIR=%%PREFIX%%/lib
+CONFDIR=%%ETCPREFIX%%/etc
+DBDIR=%%PAMABLDB%%
+LIBS=-L%%PREFIX%%/lib -L%%LOCALBASE%% -ldb -lpthread
 MODULE=pam_abl.so
 OBJ=pam_abl.o log.o config.o rule.o
 SUBDIRS=tools
@@@@ -14,17 +14,17 @@@@
 	for d in $(SUBDIRS) ; do cd $$d && make $@@ && cd .. ; done
 
 $(MODULE) : $(OBJ)
-	ld -x --shared $(LIBS) -o $@@ $^
+	ld -x --shared $(LIBS) -o $(MODULE) $(OBJ)
 
 clean :
 	rm -f $(MODULE) $(OBJ)
 	for d in $(SUBDIRS) ; do cd $$d && make $@@ && cd .. ; done
 
 install : $(MODULE)
-	install --mode=755 --strip $(MODULE) $(PAMDIR)
-	#install --mode=644 conf/pam_abl.conf $(CONFDIR)
-	install -d --mode=755 $(DBDIR)
-	for d in t $(SUBDIRS) ; do cd $$d && make $@@ && cd .. ; done
+	install -m 755 -s $(MODULE) $(PAMDIR)
+	install -m 644 conf/pam_abl.conf $(CONFDIR)/pam_abl.conf.sample
+	install -d -m 755 $(DBDIR)
+	for d in $(SUBDIRS) ; do cd $$d && make $@@ && cd .. ; done
 
 depend :
 	cc -MM *.c > deps
@


1.1
log
@The pam_abl provides auto blacklisting of hosts and users
responsible for repeated failed authentication attempts.

WWW: http://www.hexten.net/pam_abl/

PR:		ports/100635
Submitted by:	Petr Rehor <prehor@@gmail.com>
@
text
@d12 1
a12 1
+CFLAGS=-Wall -fPIC -I/usr/local/include
d16 1
a16 1
+LIBS=-L/usr/local/lib -ldb -lpthread
@

