1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- Remove conditional code for net/samba34, it was removed on 2013-06-04

- Convert Makefile header
- Fix typo in pkg-message

PR:		ports/179279
Submitted by:	myself
Approved by:	maintainer timeout (girald@etcom.ufrgs.br, 19 days)
This commit is contained in:
Rene Ladan 2013-06-22 09:36:41 +00:00
parent 7044e0fe42
commit 3e00d89321
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=321559
2 changed files with 2 additions and 34 deletions

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: scannedonly
# Date created: 20 January 2011
# Whom: girald@etcom.ufrgs.br
#
# Created by: girald@etcom.ufrgs.br
# $FreeBSD$
#
PORTNAME= scannedonly
PORTVERSION= 0.21
@ -37,40 +33,12 @@ SAMBA_VERSION?= 3.6
SAMBA_PORT?= net/samba${SAMBA_VERSION:C/([0-9]*)\.([0-9]*).*/\1\2/}
# If samba34 is installed, we need the sources from samba.
# We don't if samba3[56] is installed.
# http://olivier.sessink.nl/scannedonly/faq.html
.if ${SAMBA_PORT} == net/samba34
BUILD_DEPENDS+= ${NONEXISTENT}:${PORTSDIR}/${SAMBA_PORT}:configure
CONFIGURE_ARGS+=\
--with-samba-source=${WRKDIR}/../../../${SAMBA_PORT}/work/samba-${SAMBA_VERSION}/source3
USE_AUTOTOOLS= autoconf
.endif
PLIST_FILES= sbin/scannedonlyd_clamav \
bin/scannedonly_prescan
.if ${SAMBA_PORT} == net/samba34
PLIST_FILES+= lib/samba/vfs/scannedonly.so
PLIST_DIRS= lib/samba/vfs \
lib/samba
.endif
MAN8= ${PORTNAME}_prescan.8 \
${PORTNAME}d_clamav.8
MANCOMPRESSED= yes
# Hackery to avoid death for non-obvious reasons if detected
# SAMBA_VERSION doesn't match the PORTVERSION of samba in ports
pre-everything::
.if ${SAMBA_PORT} == net/samba34
@if [ "$$(${MAKE} -C ${PORTSDIR}/${SAMBA_PORT} -V PORTVERSION)" \
!= "${SAMBA_VERSION}" ] ; \
then ${ECHO_MSG} -n "==> Bailing. Version of Samba on system is "; \
${ECHO_MSG} "${SAMBA_VERSION}, which does not match" ; \
${ECHO_MSG} " that in ports. Please update Samba and try again." ; \
${FALSE} ; \
fi
.endif
post-patch:
@${REINPLACE_CMD} \
-e 's|/var/lib/scannedonly/scan|/var/run/scannedonlyd.sock|g' \

View File

@ -1,7 +1,7 @@
**************************************************
* WARNING! *
* *
* Make sure you've enough socker buffer size. *
* Make sure you've enough socket buffer size. *
* Consider increasing kern.ipc.maxsockbuf adding *
* at least the following sysctl setting to *
* /etc/sysctl.conf: *