some improvements

This commit is contained in:
Tim Ruehsen 2014-05-23 17:13:05 +02:00
parent 697a02750c
commit 518ae87f49
15 changed files with 136 additions and 8 deletions

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
libpsl (0.2.1-1) unstable; urgency=low
* Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
-- Tim Ruehsen <tim.ruehsen@gmx.de> Mon, 19 May 2014 17:15:08 +0200

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
9

36
debian/control vendored Normal file
View File

@ -0,0 +1,36 @@
Source: libpsl
Priority: optional
Maintainer: Tim Ruehsen <tim.ruehsen@gmx.de>
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.

28
debian/copyright vendored Normal file
View File

@ -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.

3
debian/docs vendored Normal file
View File

@ -0,0 +1,3 @@
NEWS
README.md
AUTHORS

2
debian/libpsl-dev.dirs vendored Normal file
View File

@ -0,0 +1,2 @@
usr/lib
usr/include

5
debian/libpsl-dev.install vendored Normal file
View File

@ -0,0 +1,5 @@
usr/include/*
usr/lib/lib*.a
usr/lib/lib*.so
usr/lib/pkgconfig/*
usr/share/pkgconfig/*

10
debian/libpsl.doc-base vendored Normal file
View File

@ -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

1
debian/libpsl1.dirs vendored Normal file
View File

@ -0,0 +1 @@
usr/lib

1
debian/libpsl1.install vendored Normal file
View File

@ -0,0 +1 @@
usr/lib/lib*.so.*

21
debian/rules vendored Executable file
View File

@ -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

1
debian/shlibs.local.ex vendored Normal file
View File

@ -0,0 +1 @@
liblibpsl 0.2.1 libpsl (>> 0.2.1-0), libpsl (<< 0.2.1-99)

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (quilt)

3
debian/watch vendored Normal file
View File

@ -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

View File

@ -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