Hi,
if it is intersting...
I wrote a patch for package/debian/.
- add scep-client
- switch *.deb *.tar.gz to deb/
- add make scan to i18n
- update dependency of debian stable and CPAN lib's
- update README
- add ChangeLog
svn-openxpki/trunk/package# svn diff debian
> ../../openxpki-add_missing_cpan_deb.patch
jochen
Index: debian/i18n/Makefile
===================================================================
--- debian/i18n/Makefile (Revision 1314)
+++ debian/i18n/Makefile (Arbeitskopie)
@@ -14,6 +14,7 @@
openxpki-archive:
cd ${OPENXPKI_SVN}/trunk/i18n/; \
+ make scan; \
make dist; \
mv $(PACKAGE)-*.tar.gz /tmp
@@ -32,7 +33,7 @@
package:
cd /tmp/$(PACKAGE)-*/; \
fakeroot dpkg-buildpackage || echo ignoring error - usually signing ...
- mv /tmp/$(PACKAGE)_* .
+ mv /tmp/$(PACKAGE)_* ../deb/client/
changelog::
if [ ! -e changelog.org ]; then mv changelog changelog.org; fi
@@ -50,6 +51,6 @@
clean: source-clean
if [ -e changelog.org ]; then mv changelog.org changelog; fi
- rm -f *.dsc *.dsc.asc *.tar.gz *.deb *.changes
+ rm -f *.dsc *.dsc.asc *.tar.gz ../deb/client/$(PACKAGE)_* *.changes
distclean: clean
Index: debian/deployment/Makefile
===================================================================
--- debian/deployment/Makefile (Revision 1314)
+++ debian/deployment/Makefile (Arbeitskopie)
@@ -33,7 +33,7 @@
package:
cd /tmp/$(PACKAGE)-*/; \
fakeroot dpkg-buildpackage || echo ignoring error - usually signing ...
- mv /tmp/$(PACKAGE)_* .
+ mv /tmp/$(PACKAGE)_* ../deb/client/
changelog::
if [ ! -e changelog.org ]; then mv changelog changelog.org; fi
@@ -52,6 +52,6 @@
clean: source-clean
if [ -e changelog.org ]; then mv changelog.org changelog; fi
- rm -f *.dsc *.dsc.asc *.tar.gz *.deb *.changes
+ rm -f *.dsc *.dsc.asc *.tar.gz ../deb/client/$(PACKAGE)_* *.changes
distclean: clean
Index: debian/perl-client-api/Makefile
===================================================================
--- debian/perl-client-api/Makefile (Revision 1314)
+++ debian/perl-client-api/Makefile (Arbeitskopie)
@@ -34,7 +34,7 @@
package:
cd /tmp/$(PERLNAME)-*/; \
fakeroot dpkg-buildpackage || echo ignoring error - usually signing ...
- mv /tmp/$(PACKAGE)_* .
+ mv /tmp/$(PACKAGE)_* ../deb/client_api/
changelog::
if [ ! -e changelog.org ]; then mv changelog changelog.org; fi
@@ -51,4 +51,4 @@
clean: source-clean
if [ -e changelog.org ]; then mv changelog.org changelog; fi
- rm -f *.dsc *.dsc.asc *.tar.gz *.deb *.changes
+ rm -f *.dsc *.dsc.asc *.tar.gz ../deb/client_api/* *.changes
Index: debian/scep-client/Makefile
===================================================================
--- debian/scep-client/Makefile (Revision 1314)
+++ debian/scep-client/Makefile (Arbeitskopie)
@@ -34,7 +34,7 @@
package:
cd /tmp/$(PERLNAME)-*/; \
fakeroot dpkg-buildpackage || echo ignoring error - usually signing ...
- mv /tmp/$(PACKAGE)_* .
+ mv /tmp/$(PACKAGE)_* ../deb/client/
changelog::
if [ ! -e changelog.org ]; then mv changelog changelog.org; fi
@@ -51,4 +51,4 @@
clean: source-clean
if [ -e changelog.org ]; then mv changelog.org changelog; fi
- rm -f *.dsc *.dsc.asc *.tar.gz *.deb *.changes
+ rm -f *.dsc *.dsc.asc *.tar.gz ../deb/client/$(PACKAGE)_* *.changes
Index: debian/ChangeLog
===================================================================
--- debian/ChangeLog (Revision 0)
+++ debian/ChangeLog (Revision 0)
@@ -0,0 +1,14 @@
+
+
+
+
+
+08.2008 [EMAIL PROTECTED]
+
+ - add scep-client
+ - switch *.deb *.tar.gz to deb/
+ - add make scan to i18n
+ - update dependency of debian stable and CPAN lib's
+ - update README
+ - add ChangeLog
+
Index: debian/core/control
===================================================================
--- debian/core/control (Revision 1314)
+++ debian/core/control (Arbeitskopie)
@@ -1,16 +1,17 @@
Source: libopenxpki-perl
Maintainer: Michael Bell <[EMAIL PROTECTED]>
Priority: optional
-Build-Depends: debhelper (>= 3.0.18), perl (>= 5.6.0-16), liblog-log4perl-perl, libversion-perl
+Build-Depends: debhelper (>= 3.0.18), perl (>= 5.6.0-16), libversion-perl, libconfig-std-perl
Package: libopenxpki-perl
Architecture: any
Recommends: libdbd-pg-perl | libdbd-mysql-perl
Section: perl
Priority: optional
-Depends: ${perl:Depends}, ${shlibs:Depends}, make, openssl (>= 0.9.8), libdatetime-perl, libxml-sax-perl, libxml-simple-perl, libtest-pod-perl, libcgi-session-perl, libfilter-perl, libtext-csv-perl, libxml-parser-perl, libdbi-perl, libtest-pod-coverage-perl, libdigest-sha1-perl, libintl-perl, libtimedate-perl, libexception-class-perl, libxml-sax-writer-perl, libnet-ldap-perl, liblog-log4perl-perl, libxml-filter-xinclude-perl, libxml-validator-schema-perl, libtemplate-perl, libnet-server-perl, libregexp-common-perl
+Depends: ${perl:Depends}, ${shlibs:Depends}, make, openssl (>= 0.9.8), libcgi-session-perl, libdatetime-perl, libdigest-sha1-perl, libexception-class-perl (>=1.22), libio-prompt-perl, liblog-log4perl-perl, libmail-rfc822-address-perl, libnet-ip-perl, libnet-ldap-perl, libnet-server-perl, libparams-validate-perl, libregexp-common-perl, libtemplate-perl, libtest-pod-perl, libtest-pod-coverage-perl, libtext-csv-perl, libxml-parser-perl, libxml-sax-perl, libxml-sax-writer-perl, libxml-simple-perl, libipc-sharelite-perl, libintl-perl, libfilter-perl, libdata-password-perl, libdata-serializer-perl, libdatetime-format-dateparse-perl, libproc-processtable-perl, libsys-sigaction-perl, libtemplate-perl, libworkflow-perl, libxml-filter-xinclude-perl, libxml-validator-schema-perl, libdbi-perl
Description: OpenXPKI Perl core modules
OpenXPKI is an Open Source PKI project.
.
This package contains all core modules which are required to run
an OpenXPKI trustcenter.
+
Index: debian/core/Makefile
===================================================================
--- debian/core/Makefile (Revision 1314)
+++ debian/core/Makefile (Arbeitskopie)
@@ -34,7 +34,7 @@
package:
cd /tmp/$(PERLNAME)-*/; \
fakeroot dpkg-buildpackage || echo ignoring error - usually signing ...
- mv /tmp/$(PACKAGE)_* .
+ mv /tmp/$(PACKAGE)_* ../deb/core
changelog::
if [ ! -e changelog.org ]; then mv changelog changelog.org; fi
@@ -51,4 +51,4 @@
clean: source-clean
if [ -e changelog.org ]; then mv changelog.org changelog; fi
- rm -f *.dsc *.dsc.asc *.tar.gz *.deb *.changes
+ rm -f *.dsc *.dsc.asc *.tar.gz ../deb/core/* *.changes
Index: debian/mason-html-client/control
===================================================================
--- debian/mason-html-client/control (Revision 1314)
+++ debian/mason-html-client/control (Arbeitskopie)
@@ -8,7 +8,7 @@
Recommends:
Section: perl
Priority: optional
-Depends: ${perl:Depends}, ${shlibs:Depends}, libopenxpki-client-perl, apache, libhtml-mason-perl, libapache-mod-perl, libapache-request-perl
+Depends: ${perl:Depends}, ${shlibs:Depends}, libwww-mechanize-perl, libopenxpki-client-perl, apache, libhtml-mason-perl, libapache-mod-perl, libapache-request-perl, graphviz, libhttp-server-simple-perl, libdata-page-perl
Description: OpenXPKI Mason based web frontend
OpenXPKI is an Open Source PKI project.
.
Index: debian/mason-html-client/Makefile
===================================================================
--- debian/mason-html-client/Makefile (Revision 1314)
+++ debian/mason-html-client/Makefile (Arbeitskopie)
@@ -34,7 +34,7 @@
package:
cd /tmp/$(PERLNAME)-*/; \
fakeroot dpkg-buildpackage || echo ignoring error - usually signing ...
- mv /tmp/$(PACKAGE)_* .
+ mv /tmp/$(PACKAGE)_* ../deb/client/
changelog::
if [ ! -e changelog.org ]; then mv changelog changelog.org; fi
@@ -51,4 +51,4 @@
clean: source-clean
if [ -e changelog.org ]; then mv changelog.org changelog; fi
- rm -f *.dsc *.dsc.asc *.tar.gz *.deb *.changes
+ rm -f *.dsc *.dsc.asc *.tar.gz ../deb/client/$(PACKAGE)_* *.changes
Index: debian/Makefile
===================================================================
--- debian/Makefile (Revision 1314)
+++ debian/Makefile (Arbeitskopie)
@@ -1,4 +1,11 @@
+# we need this packages to build external cpan modules (debian etch)
+# libversion-perl libmodule-build-perl iblog-log4perl-perl libdatetime-perl
+# libapache-request-perl libtest-exception-perl libxml-sax-perl
+# libxml-sax-writer-perl libtree-dagnode-perl liburi-perl
+# libclass-factory-perl libxml-simple-perl libdatetime-format-strptime-perl
+# libhttp-server-simple-perl libdata-page-perl
+
# do not change the order
# some packages have build dependencies
PACKAGES= \
@@ -9,13 +16,37 @@
scep-client \
i18n
-EXTERNAL= \
- Data__Password \
- XML__Filter__XInclude \
- XML__Validator__Schema
+# Data::Password Data::Serializer DateTime::Format::DateParse IPC::ShareLite
+# Locale::TextDomain Proc::ProcessTable Sys::SigAction Workflow
+# XML::Filter::XInclude XML::SAX::PurePerl XML::Validator::Schema
+# Exception::Class 1.22 Added Exception::Class::Base->caught()
+
+EXTERNAL= \
+ Devel__StackTrace \
+ Exception__Class \
+ HTML__Mason \
+ Class__Std \
+ Config__Std \
+ Data__Password \
+ Proc__ProcessTable \
+ Sys__SigAction \
+ Workflow \
+ XML__Filter__XInclude \
+ XML__Validator__Schema \
+ Data__Serializer \
+ DateTime__Format__DateParse \
+ Class__Observable \
+ DBD__Mock \
+ Hook__LexWrap \
+ HTTP__Server__Simple__Mason \
+ Test__HTTP__Server__Simple \
+ Data__SpreadPagination
+
.PHONY : $(PACKAGES) $(EXTERNAL)
+cpan_dependency: $(EXTERNAL)
+
default: clean
make $(EXTERNAL)
make $(PACKAGES)
@@ -23,7 +54,7 @@
make check
$(EXTERNAL):
- dh-make-perl --build --cpan $(subst __,::,$@)
+ cd deb/cpan/ && dh-make-perl --build --notest --cpan $(subst __,::,$@)
$(PACKAGES):
cd $@ && PATH=$(PATH):/usr/sbin make $(SUBTARGET)
@@ -40,9 +71,9 @@
lintian *.deb
clean:
- rm -f *.dsc *.dsc.asc *.tar.gz *.deb *.changes
+ cd deb/cpan/ && rm -f *.dsc *.dsc.asc *.tar.gz *.deb *.changes
make $(PACKAGES) SUBTARGET=clean
- for DIR in $(subst __,-,$(EXTERNAL)); do \
+ cd deb/cpan/ && for DIR in $(subst __,-,$(EXTERNAL)); do \
rm -rf $$DIR-*; \
done
Index: debian/README
===================================================================
--- debian/README (Revision 1314)
+++ debian/README (Arbeitskopie)
@@ -3,23 +3,34 @@
1. Completely checkout the major subversion trunk area.
-2. cd trunk/package/debian/
+2. aptitude install libversion-perl libmodule-build-perl \
+ liblog-log4perl-perl libdatetime-perl libexception-class-perl \
+ libapache-request-perl libxml-sax-perl libxml-sax-writer-perl \
+ libtree-dagnode-perl liburi-perl libclass-factory-perl \
+ libxml-simple-perl libdatetime-format-strptime-perl \
+ libhttp-server-simple-perl libdata-page-perl
-3. make core
+3. cd trunk/package/debian/
-4. dpkg -i core/libopenxpki-perl*.deb
+4. make cpan_dependency
-5. make perl-client-api
+5. dpkg -i deb/cpan/*.deb
-6. dpkg -i perl-client-api/libopenxpki-client-perl*.deb
+6. make core
-7. make
+7. dpkg -i deb/core/libopenxpki-perl*.deb
-8. dpkg -i *.deb
+8. make perl-client-api
-If you have finished this or libopenxpki-perl and libopenxpki-client-perl
-are already installed then you must only perform steps 1, 2, 7 and 8. The
-steps 3 to 6 are necessary because the packages libopenxpki-perl and
+9. dpkg -i deb/client_api/libopenxpki-client-perl*.deb
+
+10. make i18n deployment scep-client mason-html-client
+
+11. dpkg -i deb/client/openxpki-i18n_*.deb \
+ dpkg -i deb/client/libopenxpki-client-html-mason-perl_*.deb \
+ dpkg -i deb/client/libopenxpki-client-scep-perl_*.deb \
+ dpkg -i deb/client/openxpki-deployment_*.deb
+The steps 6 to 9 are necessary because the packages libopenxpki-perl and
libopenxpki-client-perl are required for package builds.
How to create a special debian package like libopenxpki-perl?
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
OpenXPKI-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openxpki-devel