mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
Add CPE support on request of the security officer.
This commit is contained in:
parent
ea3e503272
commit
05439fec22
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=364363
@ -20,6 +20,8 @@ PATCH_STRIP= -p1
|
||||
EXTRA_PATCHES= ${PATCHDIR}/sernet.patch
|
||||
|
||||
SAMBA_BASENAME= samba
|
||||
CPE_VENDOR= samba
|
||||
CPE_PRODUCT= samba
|
||||
|
||||
LATEST_LINK= ${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
|
||||
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
|
||||
@ -30,7 +32,7 @@ AUTOHEADER_ARGS= ${IPATHS}
|
||||
AUTOCONF_ARGS= ${IPATHS}
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
USES= gmake pkgconfig iconv
|
||||
USES= gmake pkgconfig iconv cpe
|
||||
USE_AUTOTOOLS= autoconf autoheader
|
||||
USE_LDCONFIG= ${SAMBA_LIBDIR}
|
||||
# pkg-config is used to find talloc
|
||||
@ -483,6 +485,7 @@ pre-install:
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
@${RM} -f ${STAGEDIR}/${PREFIX}/bin/findsmb
|
||||
.for sect in 1 3 5 7 8
|
||||
@${MKDIR} ${STAGEDIR}${MAN${sect}PREFIX}/man/man${sect}
|
||||
. for man in ${SAMBA_MAN${sect}}
|
||||
|
@ -1,8 +0,0 @@
|
||||
--- ./source3/script/findsmb.in.orig 2014-07-12 21:37:56.512194098 +0000
|
||||
+++ ./source3/script/findsmb.in 2014-07-12 21:38:19.976192656 +0000
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!@PERL@
|
||||
+#!%%PREFIX%%/bin/perl
|
||||
#
|
||||
# Prints info on all smb responding machines on a subnet.
|
||||
# This script needs to be run on a machine without nmbd running and be
|
@ -1,6 +1,5 @@
|
||||
etc/%%SAMBA_CONFIG%%.sample
|
||||
bin/eventlogadm
|
||||
bin/findsmb
|
||||
bin/make_smbpasswd
|
||||
bin/net
|
||||
bin/nmblookup
|
||||
|
@ -24,6 +24,8 @@ SAMBA4_DISTNAME= ${SAMBA4_BASENAME}-${SAMBA4_VERSION:S|.p|pre|:S|.r|rc|:S|.t|tp|
|
||||
WRKSRC?= ${WRKDIR}/${DISTNAME}
|
||||
|
||||
.if !defined(SAMBA4_SUBPORT)
|
||||
CPE_VENDOR= samba
|
||||
CPE_PRODUCT= samba
|
||||
# Directories
|
||||
VARDIR= ${DESTDIR}/var
|
||||
SAMBA4_RUNDIR= ${VARDIR}/run/${SAMBA4_PORTNAME}
|
||||
@ -63,7 +65,7 @@ CONFIGURE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
||||
PTHREAD_LDFLAGS="${PTHREAD_LIBS}"
|
||||
|
||||
USE_PYTHON= 2
|
||||
USES= shebangfix compiler perl5 pkgconfig iconv readline
|
||||
USES= shebangfix compiler perl5 pkgconfig iconv readline cpe
|
||||
USE_PERL5= build
|
||||
USE_LDCONFIG= ${SAMBA4_LIBDIR}
|
||||
WAF_TOOL= buildtools/bin/waf
|
||||
|
@ -24,6 +24,8 @@ SAMBA4_DISTNAME= ${SAMBA4_BASENAME}-${SAMBA4_VERSION:S|.p|pre|:S|.r|rc|:S|.t|tp|
|
||||
WRKSRC?= ${WRKDIR}/${DISTNAME}
|
||||
|
||||
.if !defined(SAMBA4_SUBPORT)
|
||||
CPE_VENDOR= samba
|
||||
CPE_PRODUCT= samba
|
||||
# Directories
|
||||
VARDIR= ${DESTDIR}/var
|
||||
SAMBA4_RUNDIR= ${VARDIR}/run/${SAMBA4_PORTNAME}
|
||||
@ -63,7 +65,7 @@ CONFIGURE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
||||
PTHREAD_LDFLAGS="${PTHREAD_LIBS}"
|
||||
|
||||
USE_PYTHON= 2
|
||||
USES= shebangfix compiler perl5 pkgconfig iconv readline
|
||||
USES= shebangfix compiler perl5 pkgconfig iconv readline cpe
|
||||
USE_PERL5= build
|
||||
USE_LDCONFIG= ${SAMBA4_LIBDIR}
|
||||
WAF_TOOL= buildtools/bin/waf
|
||||
|
Loading…
Reference in New Issue
Block a user