blob: 4685307f8c3c377d4c5f27eb0cc4354f6c4f85b4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# New ports collection makefile for: samba-tng
# Date created: 11th May 2002
# Whom: dwcjr
#
# $FreeBSD$
#
PORTNAME= samba-tng
PORTVERSION= 2.6.1c20020524
CATEGORIES= net
MASTER_SITES= http://www.samba-tng.org/download/tng/ \
http://something.inethouston.net/~poseiden/
DISTNAME= ${PORTNAME}${PKGNAMESUFFIX}_0.${PORTVERSION:S,c,cvs,}
MAINTAINER= dwcjr@FreeBSD.org
LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv
GNU_CONFIGURE= YES
INSTALLS_SHLIB= YES
USE_GMAKE= YES
USE_BZIP2= YES
USE_AUTOCONF= YES
WRKSRC= ${WRKDIR}/tng-clean/source
# directories
VARDIR= /var
SAMBA_SPOOL= ${VARDIR}/spool/samba
SAMBA_LOGDIR= ${VARDIR}/log
SAMBA_PRIVATE= ${PREFIX}/private
SAMBA_CONFDIR= ${PREFIX}/etc
CONFIGURE_ARGS= --localstatedir=${VARDIR}/lock \
--with-privatedir=${SAMBA_PRIVATE} --with-pam \
--with-logdir=${VARDIR}/log --with-tmpdir=${VARDIR}/run/samba-tng \
--with-libiconv=${LOCALBASE}
MAN1= debug2html.1 make_smbcodepage.1 nmblookup.1 \
regedit.1 rpcclient.1 smbclient.1 smbrun.1 \
smbstatus.1 smbtar.1 testparm.1 testprns.1 \
wbinfo.1
MAN5= lmhosts.5 smb.conf.5 smbpasswd.5
MAN7= samba.7
MAN8= browserd.8 lsarpcd.8 netlogond.8 nmbd.8 rpcclient.8 \
samedit.8 samrd.8 smbd.8 smbmnt.8 smbmount.8 \
smbpasswd.8 smbspool.8 smbumount.8 spoolssd.8 \
srvsvcd.8 svcctld.8 swat.8 winbindd.8 winregd.8 \
wkssvcd.8
.include<bsd.port.pre.mk>
.if defined(WITH_SYSLOG)
CONFIGURE_ARGS+= --with-syslog
.endif
.if defined(WITH_MSDFS)
CONFIGURE_ARGS+= --with-msdfs
.endif
.if defined(WITH_LDAP)
LIB_DEPENDS+= ldap.2:${PORTSDIR}/net/openldap2
CONFIGURE_ARGS+= --with-ldapsam
CONFIGURE_ENV+= CPPFLAGS=-I${LOCALBASE}/include \
LDFLAGS=-L${LOCALBASE}/lib
.endif
.if !defined(WITHOUT_CUPS)
WITH_CUPS= yes
.endif
.if defined(WITH_CUPS)
LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-base
CONFIGURE_ENV+= CPPFLAGS=-I${LOCALBASE}/include \
LDFLAGS=-L${LOCALBASE}/lib
.endif
post-install:
@${INSTALL_SCRIPT} ${WRKSRC}/script/samba-init.d ${SAMBA_CONFDIR}/rc.d/samba-tng.sh.sample
.include <bsd.port.post.mk>
|