Commit 7533c9a3 authored by Marco d'Itri's avatar Marco d'Itri

Add Debian packaging

parent 2eb7e98b
ladvd (1.1.0-1) unstable; urgency=medium
* New upstream release.
* New maintainer, not anymore a native package.
-- Marco d'Itri <md@linux.it> Fri, 20 Mar 2015 15:23:54 +0100
ladvd (1.0.4) unstable; urgency=low
* New upstream release
-- Sten Spans <sten@blinkenlights.nl> Sat, 18 Feb 2012 16:37:56 +0100
ladvd (1.0.3) unstable; urgency=low
* New upstream release
-- Sten Spans <sten@blinkenlights.nl> Sun, 12 Feb 2012 22:11:16 +0100
ladvd (1.0.2) unstable; urgency=low
* New upstream release
-- Sten Spans <sten@blinkenlights.nl> Tue, 07 Feb 2012 08:33:09 +0100
ladvd (1.0.1) unstable; urgency=low
* New upstream release
-- Sten Spans <sten@blinkenlights.nl> Mon, 30 Jan 2012 15:22:28 +0100
ladvd (0.9.2-2) unstable; urgency=low
* Disable tests during build. Closes: #650670
* Add gcc 4.6 fixes. Closes: #625363
-- Sten Spans <sten@blinkenlights.nl> Thu, 22 Dec 2011 12:07:36 +0200
ladvd (0.9.2-1.1) unstable; urgency=low
* Non maintainer upload.
* Build with -Wno-error=unused-but-set-variable. Closes: #625363.
-- Matthias Klose <doko@debian.org> Sun, 04 Sep 2011 02:17:51 +0200
ladvd (0.9.2-1) unstable; urgency=low
* Initial release (Closes: #572336)
-- Sten Spans <sten@blinkenlights.nl> Mon, 27 Sep 2010 10:44:36 +0200
Source: ladvd
Section: net
Priority: extra
Maintainer: Marco d'Itri <md@linux.it>
Build-Depends: debhelper (>= 9), dh-systemd,
autoconf, automake, libtool, pkg-config,
libbsd-dev (>= 0.6.0),
libpcap-dev, libcap-ng-dev, libevent-dev, libpci-dev, libmnl-dev, libteam-dev
Standards-Version: 3.9.6.1
Vcs-Git: git://anonscm.debian.org/users/md/ladvd.git
Vcs-Browser: http://anonscm.debian.org/cgit/users/md/ladvd.git
Package: ladvd
Architecture: any
Multi-Arch: foreign
Depends: ${shlibs:Depends}, ${misc:Depends}, adduser
Description: LLDP/CDP sender
ladvd sends link layer advertisements on all available interfaces.
This makes connected hosts visible on managed switches. By default it
will run as a privilege-separated daemon.
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Contact: Sten Spans <sten@blinkenlights.nl>
Source: http://github.com/sspans/ladvd/
Files: *
Copyright: 2008, 2009, 2010 Sten Spans <sten@blinkenlights.nl>
License: ISC
Files: src/compat/setproctitle.c
Copyright: 2003 Damien Miller
1983, 1995-1997 Eric P. Allman
1988, 1993 The Regents of the University of California.
License: BSD-3-clause
Files: src/compat/strlcat.c src/compat/strlcpy.c
Copyright: 1998 Todd C. Miller <Todd.Miller@courtesan.com>
License: ISC
Files: src/compat/vis.c
Copyright: 1989, 1993 The Regents of the University of California.
License: BSD-3-clause
Files: src/compat/vis.h
Copyright: 1990 The Regents of the University of California.
License: BSD-3-clause
Files: src/compat/sys-queue.h
Copyright: 1991, 1993 The Regents of the University of California.
License: BSD-3-clause
License: ISC
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
License: BSD-3-clause
Copyright (c) The Regents of the University of California.
All rights reserved.
.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the University nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
.
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
[DEFAULT]
upstream-tag = v%(version)s
pristine-tar = False
[buildpackage]
git-compression = xz
[pq]
patch-numbers = False
#!/bin/sh
### BEGIN INIT INFO
# Provides: ladvd
# Required-Start: $network $remote_fs $syslog
# Required-Stop: $network $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start ladvd
### END INIT INFO
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
. /lib/lsb/init-functions
NAME=ladvd
DAEMON=/usr/sbin/$NAME
PIDFILE=/run/$NAME.pid
test -x $DAEMON || exit 5
# Additional options that are passed to the Daemon.
DAEMON_OPTS="-aL"
# Include defaults if available
if [ -f /etc/default/$NAME ] ; then
. /etc/default/$NAME
fi
set -e
case "$1" in
start)
# create the privsep empty dir if necessary
if [ ! -d /run/ladvd ]; then
mkdir /run/ladvd
chmod 0755 /run/ladvd
fi
log_begin_msg "Starting $NAME: "
start-stop-daemon --start --quiet --oknodo --pidfile $PIDFILE \
--exec $DAEMON -- $DAEMON_OPTS
log_end_msg $?
;;
stop)
log_begin_msg "Stopping $NAME: "
start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE \
--exec $DAEMON
log_end_msg $?
;;
restart|force-reload)
$0 stop && sleep 2 && $0 start
;;
*)
echo "Usage: $0 {start|stop|restart|force-reload}"
exit 1
;;
esac
exit 0
#!/bin/sh
set -e
if [ "$1" = "configure" ]; then
if ! getent passwd ladvd > /dev/null; then
adduser --system --quiet --group --no-create-home --home /var/empty/ \
--disabled-password --disabled-login ladvd
fi
fi
dpkg-maintscript-helper rm_conffile /etc/default/ladvd 1.0.4~ ladvd -- "$@"
#DEBHELPER#
#!/bin/sh
set -e
if [ "$1" = "purge" ]; then
if [ -d /run/ladvd ]; then
rm -rf /run/ladvd
fi
fi
dpkg-maintscript-helper rm_conffile /etc/default/ladvd 1.0.4~ ladvd -- "$@"
#DEBHELPER#
#!/bin/sh
set -e
dpkg-maintscript-helper rm_conffile /etc/default/ladvd 1.0.4~ ladvd -- "$@"
#DEBHELPER#
#!/usr/bin/make -f
SHELL+= -e
DPKG_EXPORT_BUILDFLAGS=1
DEB_BUILD_MAINT_OPTIONS=hardening=+pie,+bindnow
-include /usr/share/dpkg/buildflags.mk
CFLAGS+=$(shell pkg-config --cflags libbsd-overlay)
LDFLAGS+=$(shell pkg-config --libs libbsd-overlay)
CFLAGS+=$(shell pkg-config --cflags libbsd-ctor)
LDFLAGS+=$(shell pkg-config --libs libbsd-ctor)
-include /usr/share/dpkg/architecture.mk
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
CONFFLAGS += --build $(DEB_HOST_GNU_TYPE)
else
CONFFLAGS += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
endif
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
#TEST_TARGET=test
endif
D := $(CURDIR)/debian/ladvd
##############################################################################
configure: configure.ac
autoreconf --force --install --symlink
build/config.status: configure
dh_testdir
mkdir -p build
cd build && \
../configure $(CONFFLAGS) \
--disable-silent-rules \
--prefix=/usr --mandir=\$${prefix}/share/man \
--with-systemdsystemunitdir=/lib/systemd/system \
--with-pid-dir=/run/ladvd
build: build-stamp
build-stamp: build/config.status
dh_testdir
cd build && \
$(MAKE)
touch $@
test: test-stamp
test-stamp: build
dh_testdir
cd build && \
$(MAKE) check
touch $@
clean:
dh_testdir
rm -rf *-stamp build \
aclocal.m4 configure src/config.h.in \
$$(find . -name Makefile.in) \
$$(find . m4/ -maxdepth 1 -type l)
dh_clean
binary-arch: build $(TEST_TARGET)
dh_testdir
dh_testroot
dh_prep
cd build && \
$(MAKE) install DESTDIR=$D
rm $D/usr/share/doc/ladvd/LICENSE
dh_installchangelogs
dh_installdocs
dh_systemd_enable
dh_installinit --restart-after-upgrade
dh_systemd_start --restart-after-upgrade
dh_installman
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary-indep:
binary: binary-indep binary-arch
build-arch: build
build-indep: build
.PHONY: clean build build-arch build-indep binary binary-indep binary-arch
version=3
opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/ladvd-$1\.tar\.gz/ \
https://github.com/sspans/ladvd/tags .*/v?(\d\S*)\.tar\.gz
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment