[Pkg-samba-maint] [samba] 01/02: Add ufw integration
Mathieu Parent
sathieu at moszumanska.debian.org
Sun Apr 3 12:22:59 UTC 2016
This is an automated email from the git hooks/post-receive script.
sathieu pushed a commit to branch master
in repository samba.
commit 722d7a5ff34bd3dc4ab6103d761710b01ea2c22a
Author: Mathieu Parent <math.parent at gmail.com>
Date: Sun Apr 3 07:34:17 2016 +0200
Add ufw integration
Cherry-picked from Ubuntu:
- Created debian/samba.ufw.profile:
- debian/rules, debian/samba.install: install profile
- debian/control: suggest ufw
---
debian/control | 3 ++-
debian/rules | 2 ++
debian/samba.install | 1 +
debian/samba.ufw.profile | 4 ++++
4 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/debian/control b/debian/control
index 2124b0d..8caf2be 100644
--- a/debian/control
+++ b/debian/control
@@ -80,7 +80,8 @@ Suggests: bind9 (>= 1:9.5.1),
ldb-tools,
ntp,
smbldap-tools,
- winbind
+ winbind,
+ ufw
Enhances: bind9, ntp
Breaks: qtsmbstatus-server (<< 2.2.1-3~)
Replaces: libsamdb0 (<< 4.0.0~alpha17~),
diff --git a/debian/rules b/debian/rules
index 51181b8..763475a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -157,6 +157,8 @@ override_dh_install:
mkdir -p debian/samba/usr/lib/$(PYSHORT)/dist-packages/samba
mv $(DESTDIR)/usr/lib/$(PYSHORT)/dist-packages/samba/dckeytab.so \
debian/samba/usr/lib/$(PYSHORT)/dist-packages/samba/dckeytab.so
+ mkdir -p $(DESTDIR)/etc/ufw/applications.d
+ install -m644 debian/samba.ufw.profile $(DESTDIR)/etc/ufw/applications.d/samba
# use upstream version of smb.conf.5 if there is no built version
# this is a temporary workaround for #750593 in xsltproc
[ -e $(DESTIDR)/usr/share/man/man5/smb.conf.5 ] || \
diff --git a/debian/samba.install b/debian/samba.install
index f4045a2..1fc046d 100644
--- a/debian/samba.install
+++ b/debian/samba.install
@@ -1,3 +1,4 @@
+etc/ufw/applications.d/samba
usr/bin/eventlogadm
usr/bin/oLschema2ldif
usr/bin/pdbedit
diff --git a/debian/samba.ufw.profile b/debian/samba.ufw.profile
new file mode 100644
index 0000000..37bcfe2
--- /dev/null
+++ b/debian/samba.ufw.profile
@@ -0,0 +1,4 @@
+[Samba]
+title=LanManager-like file and printer server for Unix
+description=The Samba software suite is a collection of programs that implements the SMB/CIFS protocol for unix systems, allowing you to serve files and printers to Windows, NT, OS/2 and DOS clients. This protocol is sometimes also referred to as the LanManager or NetBIOS protocol.
+ports=137,138/udp|139,445/tcp
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-samba/samba.git
More information about the Pkg-samba-maint
mailing list