r5257: Upadate patches and control files
[ira/wip.git] / packaging / Debian / debian-stable / rules
index 676162a39f1bbc91c0fed0896536fbfc2d6d6091..f17ea75c0157329579c1fbd60dc99595d03f77c8 100755 (executable)
@@ -97,6 +97,7 @@ build-stamp:
 
        $(MAKE) -C source headers
        $(MAKE) -C source all nsswitch/libnss_wins.so python_ext
+       $(MAKE) -C source client/mount.cifs
 
        touch build-stamp
 
@@ -135,9 +136,10 @@ install: build
        # libsmbclient files are not installed by the standard
        #       'make install' - do it manually.
        $(MAKE) -C source installclientlib DESTDIR=$(DESTDIR)
-       mv $(DESTDIR)/usr/lib/libsmbclient.so $(DESTDIR)/usr/lib/libsmbclient.so.0.1
+       mv $(DESTDIR)/usr/lib/samba/libsmbclient.so $(DESTDIR)/usr/lib/libsmbclient.so.0.1
        ln -s libsmbclient.so.0.1 $(DESTDIR)/usr/lib/libsmbclient.so.0
        ln -s libsmbclient.so.0.1 $(DESTDIR)/usr/lib/libsmbclient.so
+       mv $(DESTDIR)/usr/lib/samba/libsmbclient.a $(DESTDIR)/usr/lib/libsmbclient.a
 
        # Install other stuff not installed by "make install"
        install -m 0755 debian/mksmbpasswd.awk $(DESTDIR)/usr/sbin/mksmbpasswd
@@ -167,6 +169,10 @@ install: build
        ln -s smbmount.8 $(DESTDIR)/usr/share/man/man8/mount.smb.8
        ln -s smbmount.8 $(DESTDIR)/usr/share/man/man8/mount.smbfs.8
 
+       # Install mount.cifs and its man page
+       install -m 0755 source/client/mount.cifs $(DESTDIR)/sbin/
+       install -m 0644 docs/manpages/mount.cifs.8 $(DESTDIR)/usr/share/man/man8/
+
        # For CUPS to support printing to samba printers, it's necessary
        #       to make the following symlink (according to
        #       Erich Schubert <debian@vitavonni.de> in #109509):