]> mj.ucw.cz Git - libucw.git/commitdiff
Debian: A separate package for (most) Perl modules
authorMartin Mares <mj@ucw.cz>
Sat, 22 Jul 2017 10:29:34 +0000 (12:29 +0200)
committerMartin Mares <mj@ucw.cz>
Sat, 22 Jul 2017 10:38:34 +0000 (12:38 +0200)
debian/config
debian/control.in
debian/rules
ucw/perl/Filelock/Makefile
ucw/perl/Makefile
ucw/perl/UCW/CGI/Makefile
ucw/perl/UCW/Configure/Makefile
ucw/perl/UCW/Makefile
ucw/perl/Ulimit/Makefile

index dc568dc1c4c42427b7c28eb15d93745cd7e5cc67..f4e16a8214477460e9f151225eb624606f332e6b 100644 (file)
@@ -15,4 +15,10 @@ UnSet("CONFIG_IMAGES_LIBUNGIF");
 Set("CONFIG_IMAGES_LIBGIF");
 UnSet("CONFIG_UCW_OBSOLETE_DAEMON_HELPER");
 
+# The basic Perl modules (UCW::Configure etc.) are installed,
+# but extensions involving XS code (UCW::FileLock, UCW::Ulimit)
+# aren't, because they are seldom used and their installation
+# rules are incompatible with Debian directory structure.
+UnSet("CONFIG_UCW_PERL_MODULES");
+
 1;
index 8a729eb5e6cc18f9c951edf0e7f7cd3f38ba4034..28c16fcedd69f487b79a496efe7885b170fd94ae 100644 (file)
@@ -19,7 +19,7 @@ Description: LibUCW library
 Package: libucw-dev
 Section: libdevel
 Architecture: any
-Depends: libucw@UCW_ABI_SUFFIX@ (= @VER@), ${shlibs:Depends}, ${misc:Depends}
+Depends: libucw@UCW_ABI_SUFFIX@ (= @VER@), libucw-perl, ${shlibs:Depends}, ${misc:Depends}
 Description: LibUCW development files
 
 Package: libucw-utils
@@ -28,6 +28,12 @@ Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: LibUCW utilities
 
+Package: libucw-perl
+Section: misc
+Architecture: any
+Depends: libucw@UCW_ABI_SUFFIX@, ${shlib:Depends}, ${misc:Depends}
+Description: Companion Perl scripts for LibUCW (UCW::Configure, UCW::CGI, UCW::Config, UCW::Log)
+
 #ifdef CONFIG_DOC
 Package: libucw-doc
 Section: doc
index 921ed010397e3aae7119edb8509879af45b6d541..84a4e8a138fe6ea700b54dffa082cdffb5d9be54 100755 (executable)
@@ -30,6 +30,7 @@ install: build
        $(MAKE) DESTDIR=$(CURDIR)/debian/libucw$(UCW_ABI_SUFFIX) install-libucw-lib
        $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-dev install-libucw-api
        $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-utils install-ucw-shell install-ucw-utils
+       $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-perl install-perl-ucw
 ifdef CONFIG_DOC
        $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-doc install-libucw-docs install-libucw-man install-libucw-config
        install -d -m 755 $(CURDIR)/debian/libucw-doc/usr/share/doc/libucw/examples
@@ -76,7 +77,7 @@ binary-arch: build install
 #      dh_strip
        dh_compress -Xusr/share/doc/libucw/
        dh_fixperms
-#      dh_perl
+       dh_perl
 #      dh_python
        dh_makeshlibs -V
        dh_installdeb
index fc557335bb54f437d671d47de66bcde09be7cc7c..ca761376ddf356540673651e3c0e18b2ab202fbf 100644 (file)
@@ -23,7 +23,7 @@ $(o)/$(FILELOCK_DIR)/Filelock.xs: $(s)/$(FILELOCK_DIR)/Filelock.xs
 $(o)/$(FILELOCK_DIR)/Makefile.PL: $(s)/$(FILELOCK_DIR)/Makefile.PL
        $(Q)cp $^ $@
 
-INSTALL_TARGETS+=install-perl-ucw-filelock
+UCW_PERL_INSTALL+=install-perl-ucw-filelock
 install-perl-ucw-filelock:
        install -d -m 755 $(DESTDIR)$(INSTALL_PERL_DIR)/UCW/ $(DESTDIR)$(INSTALL_LIB_DIR)
        install -m 644 $(s)/$(FILELOCK_DIR)/Filelock.pm $(DESTDIR)$(INSTALL_PERL_DIR)/UCW/
index 787d5e75e929b34ab97737a73de362951351a214..19b2ba531b0a10b67a8461b99bf259fb6cf052f1 100644 (file)
@@ -1,6 +1,7 @@
 # Perl modules
 
 DIRS+=ucw/perl
+UCW_PERL_INSTALL=
 
 include $(s)/ucw/perl/UCW/Makefile
 
@@ -8,3 +9,8 @@ ifdef CONFIG_UCW_PERL_MODULES
 include $(s)/ucw/perl/Ulimit/Makefile
 include $(s)/ucw/perl/Filelock/Makefile
 endif
+
+INSTALL_TARGETS+=install-perl-ucw
+
+install-perl-ucw: $(UCW_PERL_INSTALL)
+.PHONY: install-perl-ucw
index f57b838cbb17aba3db9a0ed1fe25139f3aed69f8..584e8938e2429b86a95eadf512bd1d38222aa40c 100644 (file)
@@ -8,7 +8,7 @@ PROGS+=$(CGI_MODULES)
 
 $(CGI_MODULES) : PERL_MODULE_DIR=UCW/CGI
 
-INSTALL_TARGETS+=install-perl-ucw-cgi
+UCW_PERL_INSTALL+=install-perl-ucw-cgi
 install-perl-ucw-cgi:
        install -d -m 755 $(DESTDIR)$(INSTALL_PERL_DIR)/UCW/CGI
        install -m 644 $(addprefix $(s)/ucw/perl/UCW/CGI/,$(UCW_CGI_PERL_MODULES)) $(DESTDIR)$(INSTALL_PERL_DIR)/UCW/CGI
index 49679d3d9dcc2ec99016efa726af1fabf064bdda..697e3e5df7b62d3f0f46bc7f9970ab398fedab0a 100644 (file)
@@ -8,7 +8,7 @@ PROGS+=$(CONFIGURE_MODULES)
 
 $(CONFIGURE_MODULES) : PERL_MODULE_DIR=UCW/Configure
 
-INSTALL_TARGETS+=install-perl-ucw-configure
+UCW_PERL_INSTALL+=install-perl-ucw-configure
 install-perl-ucw-configure:
        install -d -m 755 $(DESTDIR)$(INSTALL_PERL_DIR)/UCW/Configure
        install -m 644 $(addprefix $(s)/ucw/perl/UCW/Configure/,$(UCW_CONFIGURE_PERL_MODULES)) $(DESTDIR)$(INSTALL_PERL_DIR)/UCW/Configure
index ddbcfecfa4f98252dbc3f2fd10f171ac7c4c02d5..149dfd4178d81e8ad2e16fba960c7e9bd2f91ad7 100644 (file)
@@ -8,8 +8,8 @@ PROGS+=$(addprefix $(o)/ucw/perl/UCW/,$(UCW_PERL_MODULES))
 include $(s)/ucw/perl/UCW/CGI/Makefile
 include $(s)/ucw/perl/UCW/Configure/Makefile
 
-INSTALL_TARGETS+=install-perl-ucw
-install-perl-ucw:
+UCW_PERL_INSTALL+=install-perl-ucw-base
+install-perl-ucw-base:
        install -d -m 755 $(DESTDIR)$(INSTALL_PERL_DIR)/UCW
        install -m 644 $(addprefix $(s)/ucw/perl/UCW/,$(UCW_PERL_MODULES)) $(DESTDIR)$(INSTALL_PERL_DIR)/UCW
-.PHONY: install-perl-ucw
+.PHONY: install-perl-ucw-base
index 4dd67d62e6c8ca841337a248048b2231928b1085..f492fbf441faaabab4cec0deff31157459f8b736 100644 (file)
@@ -23,7 +23,7 @@ $(o)/$(ULIMIT_DIR)/Ulimit.xs: $(s)/$(ULIMIT_DIR)/Ulimit.xs
 $(o)/$(ULIMIT_DIR)/Makefile.PL: $(s)/$(ULIMIT_DIR)/Makefile.PL
        $(Q)cp $^ $@
 
-INSTALL_TARGETS+=install-perl-ucw-ulimit
+UCW_PERL_INSTALL+=install-perl-ucw-ulimit
 install-perl-ucw-ulimit:
        install -d -m 755 $(DESTDIR)$(INSTALL_PERL_DIR)/UCW/ $(DESTDIR)$(INSTALL_LIB_DIR)
        install -m 644 $(s)/$(ULIMIT_DIR)/Ulimit.pm $(DESTDIR)$(INSTALL_PERL_DIR)/UCW/