From 518ae87f49f306ab5c84e510aa302ad7680c5052 Mon Sep 17 00:00:00 2001 From: Tim Ruehsen Date: Fri, 23 May 2014 17:13:05 +0200 Subject: [PATCH] some improvements --- debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 36 ++++++++++++++++++++++++++++++++++++ debian/copyright | 28 ++++++++++++++++++++++++++++ debian/docs | 3 +++ debian/libpsl-dev.dirs | 2 ++ debian/libpsl-dev.install | 5 +++++ debian/libpsl.doc-base | 10 ++++++++++ debian/libpsl1.dirs | 1 + debian/libpsl1.install | 1 + debian/rules | 21 +++++++++++++++++++++ debian/shlibs.local.ex | 1 + debian/source/format | 1 + debian/watch | 3 +++ make_deb | 26 ++++++++++++++++++-------- 15 files changed, 136 insertions(+), 8 deletions(-) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100644 debian/libpsl-dev.dirs create mode 100644 debian/libpsl-dev.install create mode 100644 debian/libpsl.doc-base create mode 100644 debian/libpsl1.dirs create mode 100644 debian/libpsl1.install create mode 100755 debian/rules create mode 100644 debian/shlibs.local.ex create mode 100644 debian/source/format create mode 100644 debian/watch diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..0c21de7 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +libpsl (0.2.1-1) unstable; urgency=low + + * Initial release (Closes: #nnnn) + + -- Tim Ruehsen Mon, 19 May 2014 17:15:08 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..38aa47b --- /dev/null +++ b/debian/control @@ -0,0 +1,36 @@ +Source: libpsl +Priority: optional +Maintainer: Tim Ruehsen +Build-Depends: debhelper (>=9), autotools-dev, automake, pkg-config, gtk-doc-tools +Standards-Version: 3.9.4 +Section: libs +Homepage: https://github.com/rockdaboot/libpsl +#Vcs-Git: git://git.debian.org/collab-maint/libpsl.git +#Vcs-Browser: http://git.debian.org/?p=collab-maint/libpsl.git;a=summary + +Package: libpsl-dev +Section: libdevel +Architecture: any +Depends: libpsl (= ${binary:Version}) +Description: Library for the Public Suffix List + Libpsl allows checking domains against the Public Suffix List, + It can be used to avoid privacy-leaking 'super-cookies', + 'super domain' certificates, for doamin highlighting purposes + sorting domain lists by site and more. + . + This package contains header files and libraries for static linking. + +Package: libpsl +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Pre-Depends: ${misc:Pre-Depends} +Multi-Arch: same +Description: Library for the Public Suffix List + Libpsl allows checking domains against the Public Suffix List, + It can be used to avoid privacy-leaking 'super-cookies', + 'super domain' certificates, for doamin highlighting purposes + sorting domain lists by site and more. + . + This package contains runtime libraries. + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..c067585 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,28 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: libpsl +Source: https://github.com/rockdaboot/libpsl + +Files: * +Copyright: Copyright (C) 2014 Tim Ruehsen +License: MIT + Quoting libpsl.h + * + * Copyright(c) 2014 Tim Ruehsen + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..d379acf --- /dev/null +++ b/debian/docs @@ -0,0 +1,3 @@ +NEWS +README.md +AUTHORS diff --git a/debian/libpsl-dev.dirs b/debian/libpsl-dev.dirs new file mode 100644 index 0000000..4418816 --- /dev/null +++ b/debian/libpsl-dev.dirs @@ -0,0 +1,2 @@ +usr/lib +usr/include diff --git a/debian/libpsl-dev.install b/debian/libpsl-dev.install new file mode 100644 index 0000000..cc66f5e --- /dev/null +++ b/debian/libpsl-dev.install @@ -0,0 +1,5 @@ +usr/include/* +usr/lib/lib*.a +usr/lib/lib*.so +usr/lib/pkgconfig/* +usr/share/pkgconfig/* diff --git a/debian/libpsl.doc-base b/debian/libpsl.doc-base new file mode 100644 index 0000000..7378b9a --- /dev/null +++ b/debian/libpsl.doc-base @@ -0,0 +1,10 @@ +Document: libpsl +Title: Debian libpsl Manual +Author: Tim Ruehsen +Abstract: This manual describes what libpsl is + and how it can be used. +Section: Programming + +Format: HTML +Index: /usr/share/doc/libpsl/html/index.html +Files: /usr/share/doc/libpsl/html/*.html diff --git a/debian/libpsl1.dirs b/debian/libpsl1.dirs new file mode 100644 index 0000000..6845771 --- /dev/null +++ b/debian/libpsl1.dirs @@ -0,0 +1 @@ +usr/lib diff --git a/debian/libpsl1.install b/debian/libpsl1.install new file mode 100644 index 0000000..d0dbfd1 --- /dev/null +++ b/debian/libpsl1.install @@ -0,0 +1 @@ +usr/lib/lib*.so.* diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..0afb182 --- /dev/null +++ b/debian/rules @@ -0,0 +1,21 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 + +%: + dh $@ --with autotools-dev + +override_dh_auto_configure: + ./autogen.sh + dh_auto_configure -- \ + --enable-gtk-doc \ + --enable-ld-version-script \ + --with-packager=Debian \ + --with-packager-bug-reports=http://bugs.debian.org/ \ + --with-packager-version="$(DEB_VERSION)" + +#override_dh_auto_clean: +# test ! -f Makefile || dh_auto_clean + diff --git a/debian/shlibs.local.ex b/debian/shlibs.local.ex new file mode 100644 index 0000000..de69a29 --- /dev/null +++ b/debian/shlibs.local.ex @@ -0,0 +1 @@ +liblibpsl 0.2.1 libpsl (>> 0.2.1-0), libpsl (<< 0.2.1-99) diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..688f54e --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=3 +opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/libpsl-$1\.tar\.gz/ \ + https://github.com/rockdaboot/libpsl/tags .*/v?(\d\S*)\.tar\.gz diff --git a/make_deb b/make_deb index 974df4e..41d345b 100755 --- a/make_deb +++ b/make_deb @@ -2,12 +2,22 @@ # see https://wiki.debian.org/Courses2005/BuildingWithoutHelper -git clone https://github.com/rockdaboot/libpsl -version=`(cd libpsl; git tag|tail -1)` -mv libpsl libpsl-${version} +version="0.2.1" + +if [ ! -e libpsl_${version}.orig.tar.gz ]; then + wget -O libpsl_${version}.orig.tar.gz https://github.com/rockdaboot/libpsl/archive/${version}.tar.gz +fi + +if [ ! -d libpsl-${version} ]; then + tar xvfz libpsl_${version}.orig.tar.gz +fi cd libpsl-${version} -./autogen.sh -./configure --enable-gtk-doc --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info -make dist -#mv libpsl-${version}.tar.gz libpsl_${version}.orig.tar.gz -dh_make -l --createorig -f libpsl-${version}.tar.gz +#./autogen.sh +#./configure --enable-gtk-doc --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info +#make dist + +#mv libpsl-${version}.tar.gz ../libpsl_${version}.orig.tar.gz +#dh_make --library --createorig --file libpsl-${version}.tar.gz + +cp -a ../debian . +debuild -us -uc