1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

- Unbreak parallel (-jX) builds (have to use GNU make)

- Respect CC and CFLAGS in a less intrusive way
- Minor cleanups; remove dead WWW link from pkg-descr
This commit is contained in:
Alexey Dokuchaev 2013-07-31 08:33:56 +00:00
parent 07856ccb50
commit f683aceac0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=324017
3 changed files with 11 additions and 22 deletions

View File

@ -1,4 +1,4 @@
# Created by: tutus@trynet.eu.org
# Created by: Jacek Serwatynski <tutus@trynet.eu.org>
# $FreeBSD$
PORTNAME= ADMsmb
@ -11,7 +11,8 @@ DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Security scanner for Samba
MAKE_JOBS_UNSAFE= yes
USES= gmake
MAKE_ARGS= CC="${CC}" FLAGS1="${CFLAGS}"
post-patch:
@${FIND} ${WRKSRC} -name "*.o" -delete
@ -19,7 +20,7 @@ post-patch:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ADMsmb ${PREFIX}/bin
${MKDIR} ${PREFIX}/share/ADMsmb
@${MKDIR} ${PREFIX}/share/ADMsmb
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/ADMsmb
.include <bsd.port.mk>

View File

@ -1,20 +1,10 @@
--- Makefile.orig Tue Oct 3 19:42:32 2006
+++ Makefile Tue Oct 3 19:43:32 2006
@@ -11,7 +11,7 @@
FLAGS1 = -O2 -fno-strict-aliasing -pipe -march=pentium -static
LIBS1 =
@@ -108,6 +108,7 @@
@$(SHELL) $(srcdir)checkos.sh $(FLAGSM)
@echo "Using CFLAGS = $(CFLAGS)"
@echo "Using LIBS = $(LIBS)"
+ @echo "Using CC = $(CC)"
-CC = gcc
+#CC = gcc
# This may help with some versions of make
SHELL = /bin/sh
@@ -56,7 +56,7 @@
CFLAGS3 = -DLOCKDIR=\"$(LOCKDIR)\" -DSMBRUN=\"$(SMBRUN)\" -DCODEPAGEDIR=\"$(CODEPAGEDIR)\"
CFLAGS4 = -DWORKGROUP=\"$(WORKGROUP)\" -DGUEST_ACCOUNT=\"$(GUESTACCOUNT)\" -DDRIVERFILE=\"$(DRIVERFILE)\"
CFLAGS5 = $(CFLAGS1) $(CFLAGS2) $(CFLAGS3) $(CFLAGS4) $(FLAGSM) $(AFS_FLAGS) $(KRB5_FLAGS) $(KRB4_FLAGS) $(RPM_OPT_FLAGS)
-CFLAGS = $(CFLAGS5) $(PAM_FLAGS) $(DCE_FLAGS) $(DES_FLAGS) $(PASSWD_FLAGS) $(VTP_FLAGS)
+CFLAGS += $(CFLAGS5) $(PAM_FLAGS) $(DCE_FLAGS) $(DES_FLAGS) $(PASSWD_FLAGS) $(VTP_FLAGS)
LIBS = $(LIBS1) $(LIBSM) $(PAM_LIBS) $(DCE_LIBS) $(KRB5_LIBS) $(KRB4_LIBS) $(DES_LIB)
INCLUDES1 = $(srcdir)version.h $(srcdir)local.h $(srcdir)includes.h $(srcdir)smb.h
.SUFFIXES:
.SUFFIXES: .c .o .h

View File

@ -2,5 +2,3 @@ ADM smb is a security scanner for Samba
/* based on the src of the smbclient from the samba team */
ADMsmb will perform a complete audit of samba for you on a host you
provide.
WWW: http://adm.freelsd.net/ADM