108 Commits

Author SHA1 Message Date
ajacoutot
963b076884 -util should own the /usr/local/lib/samba/ directory to prevent the following
warning when pkg_delete samba:
Error deleting directory /usr/local/lib/samba: Directory not empty

ok jca@ (maintainer)
2016-11-11 15:16:57 +00:00
jca
005e273761 Update to samba-4.5.1
Changes:
  https://www.samba.org/samba/history/samba-4.5.0.html
  https://www.samba.org/samba/history/samba-4.5.1.html

powerpc build test kirby@, ok Ian McWilliam
2016-11-09 15:59:37 +00:00
jca
55dada1e0e SECURITY update to samba-4.4.5
* CVE-2016-2119 (Client side SMB2/3 required signing can be downgraded)

ok ajacoutot@, Ian McWilliam, sthen@ on a previous version.  ok danj@
who noted missing entries in PLIST.
2016-07-08 18:39:50 +00:00
jca
a001ab7285 Update to samba-4.4.2
Tests by Vijay Sankar and Ian, ok Ian

This release contains the security fixes introduced by 4.4.2, plus the
new features and improvements from 4.4.0:

  https://www.samba.org/samba/history/samba-4.4.0.html
2016-04-22 11:48:36 +00:00
jca
13f7dce85d Update to samba-4.3.6
i386 build by danj@, ok sthen@

The changelog between 4.1.23 and 4.3.6 is too big to be described here.
The point of updating now is that 4.1.x won't receive updates for the
freshly published security advisories.  samba-4.3.8 will follow.
2016-04-12 17:42:09 +00:00
jca
e19d82005b Stop fetching and packaging outdated pdf docs; ok Ian 2016-03-23 19:08:15 +00:00
jca
16c613f366 SECURITY update to samba-4.1.23; ok Ian McWilliam
Fixes for CVE-2015-7560 and CVE-2016-0771.
2016-03-09 19:40:11 +00:00
ajacoutot
d60b768928 daemon_timeout is not passed to the child scripts either. 2015-11-29 15:50:20 +00:00
jca
1dcc435ff4 Do not mention SWAT, it has been removed. 2015-08-26 18:05:31 +00:00
jca
fa14e12281 Stray @sample /var/run/samba, noticed earlier by ajacoutot@
/var/run gets cleaned at boot time.  The samba daemons create this
directory at startup.
2015-08-25 15:38:16 +00:00
jca
48d3e06ff7 Add a note about nmbd being broken in AD DC setups, and bump.
Requested by giovanni@, putting it here instead of current.html so that
new users will be aware too.
2015-08-25 11:41:15 +00:00
jca
67d00b96ba Add an rc script for samba in AD DC mode. 2015-08-25 11:39:25 +00:00
jca
87847498b4 Tweak rc scripts and README. Tests, input from and ok sthen@ 2015-08-25 11:07:45 +00:00
jca
4b1d388711 Move samba4 to samba, and tweak the ports tree to use it.
ok ajacoutot@

Upcoming commits will add additional tweaks.

Many thanks to Vadim Zhukov (who did most of the work), Ian McWilliam
(co-maintainer), Stuart Henderson who provided lots of support and
feedback, Antoine Jacoutot who patiently dealt with my broken diffs,
and more generally all the people involved.  Most of the recent work was
done during p2k15 and c2k15.
2015-08-25 11:04:38 +00:00
ajacoutot
d9c1207e4f Move some obvious sudo -> '#' (root) in READMEs. 2015-07-07 14:43:36 +00:00
sthen
e56d2db445 Adjust the "meta" rc-scripts (these are used in ports with multiple daemons
which should all be started/stopped together), previously "restart" would
restart each sub-daemon in turn, but actually it should stop all daemons
and only then start them again. Additionally, as suggested by ajacoutot,
stop the procedure and return an error if stopping one of the rc scripts
failed.  ok ajacoutot@ rpe@
2015-02-17 22:08:36 +00:00
jca
e769be4eba Repair conflict between -main and -docs, introduced in previous.
The intended diff had this conflict resolved, but I ended up committing
the previous diff...  Problem spotted by Markus Lude.
2015-02-05 02:04:00 +00:00
jca
f7a904b485 Move the ldap files from the -docs to the -main samba package.
Requested by Marcus Merighi, patch by Ian McWilliam (MAINTAINER),
input from sthen@ and tweaks by me.

ok sthen@
2015-02-04 11:50:21 +00:00
ajacoutot
bca617be62 Make all meta rc.d scripts consistent.
While here, unbreak when options are passed (e.g. /etc/rc.d/foobar -df start)

ok sthen@
2014-12-08 10:57:08 +00:00
ajacoutot
dcb291c190 services(5) already contains what we need. 2014-07-11 16:20:37 +00:00
ajacoutot
497984ddf0 rc.conf.local is in man(1) section 8, at least for now. 2014-07-10 13:09:06 +00:00
sthen
243ede5192 remove ads flavour, it requires krb5 2014-04-21 22:24:17 +00:00
sthen
4a7a77a640 extra sanity checking, ensure that the rc.d scripts run by the meta script
are executable, I needed it for the bacula script which runs daemons split
between two packages, ajacoutot suggested applying to other similar scripts.
2013-05-03 18:43:26 +00:00
ajacoutot
a673865760 Tweak MESSAGEs/READMEs now that inetd(8) is off by default. 2013-04-27 15:44:20 +00:00
ajacoutot
194550b8c1 Install the pkgconfig files.
ok sthen@
2013-03-29 18:13:31 +00:00
brad
c5c4c0f07e Update to Samba 3.6.13.
ok MAINTAINER sthen@
2013-03-28 15:26:47 +00:00
brad
8aa757b05d Update to Samba 3.6.8 and fix potential fd leaks upon error with the utmp code.
ok sthen@ MAINTAINER
2012-09-25 20:11:11 +00:00
ajacoutot
06241e4236 Simplify how the order of the _pkg_scripts entries get reversed on stop.
from rpe, ok sthen@
2012-08-25 10:14:37 +00:00
ajacoutot
5787f3b87c Set rc_usercheck to NO. 2012-08-04 15:28:14 +00:00
ajacoutot
9824017b25 Remove the cups FLAVOR and depends on cups,-libs.
Fix to build with cups >= 1.6.
2012-08-04 14:45:34 +00:00
ajacoutot
771ed9034f Add comment that daemon_flags, daemon_user and daemon_class are not passed
to the child scripts.
2012-07-04 13:00:46 +00:00
sthen
cf0fe9c493 Update to Samba 3.6.6, from maintainer Ian McWilliam.
o  Fix possible memory leaks in the Samba master process (bug #8970).
o  Fix uninitialized memory read in talloc_free().
o  Fix joining of XP Pro workstations to 3.6 DCs (bug #8373).
2012-06-27 07:29:17 +00:00
ajacoutot
3231d150e9 /etc/rc.d -> RCDIR 2012-04-22 13:44:09 +00:00
sthen
02b481b58a *NASTY* security update to samba 3.6.4: remote code execution as root by
anonymous user.  https://www.samba.org/samba/security/CVE-2012-1182

Note when MFC'ing: do not sync the new entries in PLIST-main back to
stable, they depend on dirfd being a function.
2012-04-10 22:37:02 +00:00
sthen
91faa22c52 Where a program with an rc script _requires_ a certain command line
parameter to daemonize, move the parameter from daemon to daemon_flags,
so that the user cannot inadvertently prevent it from daemonizing by
adjusting the flags.

Discussed with ajacoutot and schwarze, this method was suggested
by schwarze@ as a simpler alternative to my diff. ok aja@
2011-12-17 22:01:12 +00:00
sthen
f3fcca9da2 update to samba 3.6.1; lots of bugfixes.
similar diff / ok Ian McWilliam (maintainer).
also tested by dhill, thanks!
2011-10-21 20:10:51 +00:00
sthen
49ee02f207 update to samba 3.6.0, from Ian McWilliam / Stefan Rinkes
tweaks/testing from me and nigel@
2011-09-26 09:32:12 +00:00
sthen
3f4b7ec902 don't install manpages for non-existing programs; from Pascal Stumpf, feedback
from nigel@ espie@, earlier version ok maintainer.
2011-09-13 10:54:15 +00:00
sthen
75699dfd96 Add missing directory in PLIST-main (share/doc/samba/), pointed out by fgsch@ 2011-07-14 08:42:02 +00:00
ajacoutot
70ac96c395 rc_scripts -> pkg_scripts 2011-07-08 02:14:58 +00:00
sthen
340ee33451 Change the sample cap_mkdb command so it only runs if login.conf.db is present.
ok Ian McWilliam, aja@, landry@
2011-06-03 10:21:54 +00:00
ajacoutot
f982995f2b Add a consistent header that substitutes FULLPKGNAME for the READMEs.
ok jasper@ sthen@
2011-06-02 13:41:36 +00:00
gsoares
cf9171530b - use TRUEPREFIX instead of hardcoding it; ok aja@ sthen@ 2011-05-19 20:44:51 +00:00
ajacoutot
72c5e6c88d Rewrite samba.rc and make it a wrapper script that calls the provided
rc.d(8) script. This is much more simple, makes much more sense and
allow for proper debugging.

discussed with robert@
2011-04-03 18:07:52 +00:00
sthen
318f27f121 - remove workaround for old groff
- remove MESSAGE-main referring to a config change, people upgrading
have had plenty of time to adapt

ok Ian McWilliam (maintainer)
2011-03-21 09:20:35 +00:00
ajacoutot
1ffbcaa750 Remove all redirections -- rc.subr(8) now takes care of it. 2011-03-17 16:49:27 +00:00
ajacoutot
073e9e6b72 These aren't needed either. 2011-03-09 19:37:47 +00:00
ajacoutot
242a7d4483 Add rc scripts.
While here, fix the LOCALBASE vs PREFIX and SYSCONFDIR vs /etc mess.

ok robert@
2011-01-17 17:58:03 +00:00
ajacoutot
e89b9beb0f Cosmetic, be consistent with how we set the rcs id in other files. 2010-11-06 07:56:48 +00:00
ajacoutot
9bb8edc168 Add RCS IDs and remove useless MESSAGEs. 2010-10-29 12:41:58 +00:00