Lines 16-23
Link Here
|
16 |
SLOT="0" |
16 |
SLOT="0" |
17 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
17 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
18 |
IUSE="acl addns ads aio avahi caps +client cluster cups debug doc examples fam |
18 |
IUSE="acl addns ads aio avahi caps +client cluster cups debug doc examples fam |
19 |
ldap ldb +netapi pam quota +readline +server +smbclient smbsharemodes swat |
19 |
ldap ldb +netapi pam quota +readline +server setuid +smbclient |
20 |
syslog winbind " |
20 |
smbsharemodes swat syslog winbind " |
21 |
|
21 |
|
22 |
DEPEND="dev-libs/popt |
22 |
DEPEND="dev-libs/popt |
23 |
!net-fs/samba-client |
23 |
!net-fs/samba-client |
Lines 93-98
Link Here
|
93 |
sed -i \ |
93 |
sed -i \ |
94 |
-e 's|LDSHFLAGS="|LDSHFLAGS="\\${LDFLAGS} |g' \ |
94 |
-e 's|LDSHFLAGS="|LDSHFLAGS="\\${LDFLAGS} |g' \ |
95 |
configure || die "sed failed" |
95 |
configure || die "sed failed" |
|
|
96 |
|
97 |
# Enable setuid on cifs |
98 |
if use client && use setuid ; then |
99 |
cd "${S}/.." |
100 |
epatch "${FILESDIR}/3.5.2-cifs_enable_setuid.patch" |
101 |
cd "$OLDPWD" |
102 |
fi |
96 |
} |
103 |
} |
97 |
|
104 |
|
98 |
src_configure() { |
105 |
src_configure() { |
Lines 366-368
Link Here
|
366 |
"${D}/var"/{run,lib/samba/private,lib/samba,lib,cache/samba,cache,} \ |
373 |
"${D}/var"/{run,lib/samba/private,lib/samba,lib,cache/samba,cache,} \ |
367 |
# || die "tried to remove non-empty dirs, this seems like a bug in the ebuild" |
374 |
# || die "tried to remove non-empty dirs, this seems like a bug in the ebuild" |
368 |
} |
375 |
} |
|
|
376 |
|
377 |
pkg_postinst() { |
378 |
# Set set-user-ID bit of mount.cifs and umount.cifs |
379 |
if use client && use setuid ; then |
380 |
#chmod u+s /sbin/umount.cifs /sbin/mount.cifs |
381 |
ewarn "mount.cifs and umount.cifs are capable of working with the" |
382 |
ewarn "set-user-id bit. However you have to set it manually. Using the" |
383 |
ewarn "bits means severe securuty implications. Also see:" |
384 |
ewarn "http://samba.org/samba/security/CVE-2009-2948.html" |
385 |
fi |
386 |
} |