new target make deb to create debian package, refs #1

master
Marc Wäckerlin 14 years ago
parent 522fa3b4f1
commit 1f00d0e087
  1. 28
      configure.in
  2. 5
      debian/changelog.in
  3. 1
      debian/compat
  4. 27
      debian/control
  5. 26
      debian/copyright
  6. 0
      debian/dirs
  7. 2
      debian/docs
  8. 2
      debian/libpcscxx-dev.dirs
  9. 6
      debian/libpcscxx-dev.install
  10. 1
      debian/libpcscxx.dirs
  11. 20
      debian/libpcscxx.doc-base.EX
  12. 1
      debian/libpcscxx.install
  13. 105
      debian/rules
  14. 1
      debian/shlibs.local.ex
  15. 23
      debian/watch.ex
  16. 9
      makefile.am
  17. 11
      src/libpcscxx.pc.in
  18. 10
      src/makefile.am

@ -1,4 +1,5 @@
# init
# $Id$
AC_INIT([README])
SRC_DIR=src
TST_DIR=test
@ -7,26 +8,29 @@ DOC_DIR=doc
m4_define(x_packagename, libpcscxx)
m4_define(x_major, 0)
m4_define(x_minor, 0)
m4_define(x_least, 0)
AM_INIT_AUTOMAKE(x_packagename, x_major.x_minor.x_least, [marc@waeckerlin.org])
# files to create
AC_CONFIG_FILES(makefile
src/makefile test/makefile
doc/doxyfile doc/examples/makefile doc/makefile)
# copy M4 to shell
PACKAGENAME=x_packagename
MAJOR=x_major
MINOR=x_minor
LEAST=x_least
LEAST='$Revision$'
LEAST=${LEAST#* }
LEAST=${LEAST% *}
AM_INIT_AUTOMAKE($PACKAGENAME, $MAJOR.$MINOR.$LEAST, [marc@waeckerlin.org])
# files to create
AC_CONFIG_FILES([makefile
src/makefile test/makefile
doc/doxyfile doc/examples/makefile doc/makefile
src/libpcscxx.pc debian/changelog])
AC_SUBST(MAJOR)
AC_SUBST(MINOR)
AC_SUBST(LEAST)
# libtool versioning
LIB_MAJOR=m4_eval(x_major+x_minor)
LIB_MINOR=x_least
LIB_MINOR=LEAST
LIB_LEAST=x_minor
LIB_VERSION="${LIB_MAJOR}:${LIB_MINOR}:${LIB_LEAST}"
AC_SUBST(LIB_VERSION)

@ -0,0 +1,5 @@
@PACKAGE@ (@VERSION@-1) unstable; urgency=low
* See https://dev.marc.waeckerlin.org/projects/@PACKAGE@ for changes
-- Marc Waeckerlin <marc@waeckerlin.org> Wed, 07 Apr 2010 10:23:02 +0200

1
debian/compat vendored

@ -0,0 +1 @@
7

27
debian/control vendored

@ -0,0 +1,27 @@
Source: libpcscxx
Priority: extra
Maintainer: Marc Wäckerlin <marc@waeckerlin.org>
Build-Depends: debhelper (>= 7), autotools-dev
Standards-Version: 3.8.1
Section: libs
Homepage: https://dev.marc.waeckerlin.org/projects/libpcscxx
Package: libpcscxx-dev
Section: libdevel
Architecture: any
Depends: libpcscxx (= ${binary:Version})
Description: C++ Wrapper around PCSClite, Cryptoki, OpenSSL
C++ wrappers around the ugly C-Interfaces of pcsc-lite, cryptoki and
open-ssl.
.
For more details, see: https://dev.marc.waeckerlin.org/projects/libpcscxx
Package: libpcscxx
Section: libs
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: C++ Wrapper around PCSClite, Cryptoki, OpenSSL
C++ wrappers around the ugly C-Interfaces of pcsc-lite, cryptoki and
open-ssl.
.
For more details, see: https://dev.marc.waeckerlin.org/projects/libpcscxx

26
debian/copyright vendored

@ -0,0 +1,26 @@
This package was debianized by Marc Wäckerlin <marc@waeckerlin.org> on
Wed, 07 Apr 2010 10:23:02 +0200.
It was downloaded from https://dev.marc.waeckerlin.org/projects/proxyface
Upstream Author(s):
Marc Wäckerlin <marc@waeckerlin.org>
Copyright:
Marc Wäckerlin <marc@waeckerlin.org>
License:
LGPL version 3
The Debian packaging is:
Copyright (C) 2010 Marc Wäckerlin <marc@waeckerlin.org>
and is licensed under the GPL version 3,
see `/usr/share/common-licenses/GPL-3'.
# Please also look if there are files or directories which have a
# different copyright/license attached and list them here.

2
debian/docs vendored

@ -0,0 +1,2 @@
NEWS
README

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

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

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

@ -0,0 +1,20 @@
Document: proxyface
Title: Debian proxyface Manual
Author: <insert document author here>
Abstract: This manual describes what proxyface is
and how it can be used to
manage online manuals on Debian systems.
Section: unknown
Format: debiandoc-sgml
Files: /usr/share/doc/proxyface/proxyface.sgml.gz
Format: postscript
Files: /usr/share/doc/proxyface/proxyface.ps.gz
Format: text
Files: /usr/share/doc/proxyface/proxyface.text.gz
Format: HTML
Index: /usr/share/doc/proxyface/html/index.html
Files: /usr/share/doc/proxyface/html/*.html

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

105
debian/rules vendored

@ -0,0 +1,105 @@
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
else
CROSS= --build $(DEB_BUILD_GNU_TYPE)
endif
# shared library versions, option 1
version=2.0.5
major=2
# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
#version=`ls src/.libs/lib*.so.* | \
# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
#major=`ls src/.libs/lib*.so.* | \
# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
config.status: configure
dh_testdir
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
cp -f /usr/share/misc/config.sub config.sub
endif
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
cp -f /usr/share/misc/config.guess config.guess
endif
./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)"
# does not work: LDFLAGS="-Wl,-z,defs"
build: build-stamp
build-stamp: config.status
dh_testdir
$(MAKE)
touch $@
clean:
dh_testdir
dh_testroot
rm -f build-stamp
[ ! -f [Mm]akefile ] || $(MAKE) distclean
rm -f config.sub config.guess
dh_clean
install: build
dh_testdir
dh_testroot
dh_prep
dh_installdirs
$(MAKE) prefix=$(CURDIR)/debian/tmp/usr install
# Build architecture-independent files here.
binary-indep: install
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: install
dh_testdir
dh_testroot
dh_installchangelogs ChangeLog
dh_installdocs
dh_installexamples
dh_install
# dh_installmenu
# dh_installdebconf
# dh_installlogrotate
# dh_installemacsen
# dh_installpam
# dh_installmime
# dh_installinit
# dh_installcron
# dh_installinfo
# dh_installman
dh_link
dh_strip
dh_compress
dh_fixperms
# dh_perl
# dh_python
# dh_makeshlibs
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install

@ -0,0 +1 @@
libproxyface 1.0.34 proxyface (>> 1.0.34-0), proxyface (<< 1.0.34-99)

23
debian/watch.ex vendored

@ -0,0 +1,23 @@
# Example watch control file for uscan
# Rename this file to "watch" and then you can run the "uscan" command
# to check for upstream updates and more.
# See uscan(1) for format
# Compulsory line, this is a version 3 file
version=3
# Uncomment to examine a Webpage
# <Webpage URL> <string match>
#http://www.example.com/downloads.php proxyface-(.*)\.tar\.gz
# Uncomment to examine a Webserver directory
#http://www.example.com/pub/proxyface-(.*)\.tar\.gz
# Uncommment to examine a FTP server
#ftp://ftp.example.com/pub/proxyface-(.*)\.tar\.gz debian uupdate
# Uncomment to find new files on sourceforge, for devscripts >= 2.9
# http://sf.net/proxyface/proxyface-(.*)\.tar\.gz
# Uncomment to find new files on GooglePages
# http://example.googlepages.com/foo.html proxyface-(.*)\.tar\.gz

@ -15,7 +15,14 @@ SUBDIRS = @SRC_DIR@ @TST_DIR@ @DOC_DIR@
nobase_include_HEADERS =
EXTRADIST = bootstrap.sh
EXTRA_DIST = bootstrap.sh debian
DISTCLEANFILES = debian/changelog
deb: dist
tar xzvf @PACKAGE@-@VERSION@.tar.gz
cd @PACKAGE@-@VERSION@ && dpkg-buildpackage
rm -rf @PACKAGE@-@VERSION@
infosdir = ${pkgdatadir}
infos_DATA = AUTHORS NEWS README COPYING INSTALL ChangeLog # @PACKAGENAME@.spec

@ -0,0 +1,11 @@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: @PACKAGENAME@
Description: C++ wrappers around pcsc-lite, cryptoki, openssh
Version: @VERSION@
Libs: -L${libdir} -lpcscxx
Libs.private:
Cflags: -I${includedir}

@ -8,6 +8,13 @@
include_HEADERS = pcsc.hxx cryptoki.hxx openssl.hxx cryptaux.hxx
pkcs11dir = ${includedir}/pkcs11
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libpcscxx.pc
pkgconfig2dir = $(datarootdir)/pkgconfig
pkgconfig2_DATA = $(pkgconfig_DATA)
EXTRA_DIST = $(pkgconfig_DATA).in $(shell ls -1 *.doc)
lib_LTLIBRARIES = libcryptoki++.la
libcryptoki___la_SOURCES = cryptoki.cxx cryptoki.hxx
@ -16,5 +23,6 @@ libcryptoki___la_LIBADD = -lssl
clean-local:
-rm -r ${QMAKE_TARGET}.app
CLEANFILES =
CLEANFILES =
DISTCLEANFILES = $(pkgconfig_DATA)
MAINTAINERCLEANFILES = makefile.in

Loading…
Cancel
Save