Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 542638 | Differences between
and this patch

Collapse All | Expand All

(-)samba-4.2.0.ebuild (-7 / +27 lines)
Lines 25-36 LICENSE="GPL-3" Link Here
25
SLOT="0"
25
SLOT="0"
26
26
27
IUSE="acl addns ads aio avahi client cluster cups dmapi fam gnutls iprint
27
IUSE="acl addns ads aio avahi client cluster cups dmapi fam gnutls iprint
28
ldap quota selinux syslog systemd test winbind"
28
ldap quota selinux syslog systemd test winbind afs minimal hardened"
29
29
30
# sys-apps/attr is an automagic dependency (see bug #489748)
30
# sys-apps/attr is an automagic dependency (see bug #489748)
31
# sys-libs/pam is an automagic dependency (see bug #489770)
31
# sys-libs/pam is an automagic dependency (see bug #489770)
32
CDEPEND="${PYTHON_DEPS}
32
CDEPEND="${PYTHON_DEPS}
33
	>=app-crypt/heimdal-1.5[-ssl]
33
	virtual/krb5
34
	!<app-crypt/heimdal-1.5
35
	!app-crypt/heimdal[ssl]
34
	dev-libs/iniparser
36
	dev-libs/iniparser
35
	dev-libs/popt
37
	dev-libs/popt
36
	sys-libs/readline:=
38
	sys-libs/readline:=
Lines 47-63 CDEPEND="${PYTHON_DEPS} Link Here
47
	>=sys-libs/tevent-0.9.24
49
	>=sys-libs/tevent-0.9.24
48
	>=sys-libs/uid_wrapper-1.0.1
50
	>=sys-libs/uid_wrapper-1.0.1
49
	sys-libs/zlib
51
	sys-libs/zlib
50
	virtual/pam
52
	!minimal? ( virtual/pam )
51
	acl? ( virtual/acl )
53
	acl? ( virtual/acl )
52
	addns? ( net-dns/bind-tools[gssapi] )
54
	addns? ( net-dns/bind-tools[gssapi] )
53
	aio? ( dev-libs/libaio )
55
	aio? ( dev-libs/libaio )
54
	cluster? ( >=dev-db/ctdb-1.0.114_p1 )
56
	cluster? ( !dev-db/ctdb )
55
	cups? ( net-print/cups )
57
	cups? ( net-print/cups )
56
	dmapi? ( sys-apps/dmapi )
58
	dmapi? ( sys-apps/dmapi )
57
	fam? ( virtual/fam )
59
	fam? ( virtual/fam )
58
	gnutls? ( dev-libs/libgcrypt:0
60
	gnutls? ( dev-libs/libgcrypt:0
59
		>=net-libs/gnutls-1.4.0 )
61
		>=net-libs/gnutls-1.4.0 )
60
	ldap? ( net-nds/openldap )
62
	ldap? ( net-nds/openldap )
63
	afs? ( net-fs/openafs )
61
	systemd? ( sys-apps/systemd:0= )"
64
	systemd? ( sys-apps/systemd:0= )"
62
DEPEND="${CDEPEND}
65
DEPEND="${CDEPEND}
63
	virtual/pkgconfig"
66
	virtual/pkgconfig"
Lines 93-102 pkg_setup() { Link Here
93
	fi
96
	fi
94
}
97
}
95
98
99
src_prepare(){
100
	cd "${S}" || die
101
	has_version app-crypt/heimdal && sed -i -e 's:USING_SYSTEM_KDC:USING_SYSTEM_KDC_:' source4/kdc/wscript_build
102
	sed -i -e 's:/tmp/ctdb.socket:/var/run/ctdb/ctdb.socket:g' {ctdb/doc,docs-xml/smbdotconf/misc}/*ml
103
}
104
96
src_configure() {
105
src_configure() {
97
	local myconf=''
106
	local myconf=''
98
	use "cluster" && myconf+=" --with-ctdb-dir=/usr"
99
	use "test" && myconf+=" --enable-selftest"
107
	use "test" && myconf+=" --enable-selftest"
108
	has_version app-crypt/mit-krb5 && myconf+=" --with-system-mitkrb5"
109
	if use minimal; then
110
		ewarn "Selected minimal build may be failed, disabling pam & AD DC"
111
		myconf+=" --without-ad-dc --without-libarchive"
112
		use !hardened && myconf+=" --without-pie" && ewarn "  & PIE"
113
	fi
100
	myconf="${myconf} \
114
	myconf="${myconf} \
101
		--enable-fhs \
115
		--enable-fhs \
102
		--sysconfdir=/etc \
116
		--sysconfdir=/etc \
Lines 122-132 src_configure() { Link Here
122
		$(use_enable gnutls) \
136
		$(use_enable gnutls) \
123
		$(use_enable iprint) \
137
		$(use_enable iprint) \
124
		$(use_with ldap) \
138
		$(use_with ldap) \
125
		--with-pam \
139
		$(use_with !minimal pam) \
126
		--with-pam_smbpass \
140
		$(use_with !minimal pam_smbpass) \
127
		$(use_with quota quotas) \
141
		$(use_with quota quotas) \
128
		$(use_with syslog) \
142
		$(use_with syslog) \
129
		$(use_with systemd) \
143
		$(use_with systemd) \
144
		$(use_with afs fake-kaserver) \
130
		$(use_with winbind)
145
		$(use_with winbind)
131
		"
146
		"
132
	use "ads" && myconf+=" --with-shared-modules=idmap_ad"
147
	use "ads" && myconf+=" --with-shared-modules=idmap_ad"
Lines 151-156 src_install() { Link Here
151
	newinitd "${CONFDIR}/samba4.initd-r1" samba
166
	newinitd "${CONFDIR}/samba4.initd-r1" samba
152
	newconfd "${CONFDIR}/samba4.confd" samba
167
	newconfd "${CONFDIR}/samba4.confd" samba
153
168
169
	if use cluster; then
170
		newinitd "${CONFDIR}/ctdb.initd" ctdb
171
		newconfd "${CONFDIR}/ctdb.confd" ctdb
172
	fi
173
154
	systemd_dotmpfilesd "${FILESDIR}"/samba.conf
174
	systemd_dotmpfilesd "${FILESDIR}"/samba.conf
155
	systemd_dounit "${FILESDIR}"/nmbd.service
175
	systemd_dounit "${FILESDIR}"/nmbd.service
156
	systemd_dounit "${FILESDIR}"/smbd.{service,socket}
176
	systemd_dounit "${FILESDIR}"/smbd.{service,socket}

Return to bug 542638