Package: samba
Version: 2:3.4.5~dfsg-2
Severity: wishlist
Tags: patch

A binary package providing with configured Samba header files is
necessary for VFS-objects development. The patch attached should fix
this.
Description: Adds samba-headers binary package.
Author: Al Nikolov <[email protected]>
Author: Boris Savelev <[email protected]>

diff --git a/control b/control
index d19879e..13bcd1f 100644
--- a/control
+++ b/control
@@ -231,3 +231,16 @@ Description: Samba winbind client library
  .
  This package provides a library for client applications that interact
  via the winbind pipe protocol with a Samba winbind server.
+
+Package: samba-headers
+Section: devel
+Priority: extra
+Architecture: any
+Depends: ${misc:Depends}
+Description: Samba development headers
+ Samba is an implementation of the SMB/CIFS protocol for Unix systems,
+ providing support for cross-platform file and printer sharing with
+ Microsoft Windows, OS X, and other Unix systems.
+ .
+ This package provides development headers of Samba needed, for example,
+ for building additional VFS modules.
diff --git a/rules b/rules
index e9603bd..0af53dd 100755
--- a/rules
+++ b/rules
@@ -175,6 +175,10 @@ install: build
        mkdir -p $(DESTDIR)/usr/share/pam-configs
        install -m 0644 debian/libpam-smbpass.pam-config 
$(DESTDIR)/usr/share/pam-configs/smbpasswd-migrate

+       # Install headers
+       find . -wholename ./source3/Makefile -o -name \*.h -a ! -wholename 
./source4/\* -print0 | \
+         xargs -0 -I@ install -m 0644 -D @ $(DESTDIR)/usr/src/samba-headers/@
+
 ifeq ($(mount_cifs),yes)
        install -m 0755 debian/mount.smbfs $(DESTDIR)/sbin/mount.smbfs
 endif
diff --git a/samba-headers.files b/samba-headers.files
new file mode 100644
index 0000000..7de8dd6
--- /dev/null
+++ b/samba-headers.files
@@ -0,0 +1 @@
+usr/src/samba-headers

Reply via email to