SPEC = $(PACKAGE_NAME).spec
-DEBCHANGELOG = debian/changelog
-DEBPOSTINST = debian/kronosnetd.postinst
-
TARGZFILE = $(PACKAGE_NAME)-$(VERSION).tar.gz
EXTRA_DIST = build-aux autogen.sh .version \
- debian $(DEBCHANGELOG) $(DEBPOSTINST) \
$(SPEC) $(SPEC).in
SUBDIRS = init libtap libknet kronosnetd
README \
TODO
-all-local: $(SPEC) $(DEBCHANGELOG) $(DEBPOSTINST)
+all-local: $(SPEC)
clean-local:
rm -f $(SPEC)
- rm -f $(DEBPOSTINST)
distclean-local:
rm -f $(PACKAGE_NAME)-*.tar.* $(PACKAGE_NAME)-*.sha256* tag-*
maintainer-clean-local:
- make -f debian/rules clean || true
- rm -rf m4 $(DEBCHANGELOG) $(DEBPOSTINST) debian/patches
+ rm -rf m4
## make rpm/srpm section.
$(MAKE) $(SPEC) $(TARGZFILE)
rpmbuild $(RPMBUILDOPTS) -ba $(SPEC)
-## make deb
-
-$(DEBPOSTINST): $(DEBPOSTINST).in config.h
- mkdir -p debian
- rm -f $@-t $@
- sed -e "s#@defaultadmgroup@#$(DEFAULTADMGROUP)#g" $(abs_srcdir)/$@.in > $@-t
- chmod a-w $@-t
- mv $@-t $@
-
-$(DEBCHANGELOG): $(DEBCHANGELOG).in .version
- mkdir -p debian
- rm -f $@-t $@
- date="`LC_ALL=C date -R`" && \
- if [ -f .tarball-version ]; then \
- gitver="`cat .tarball-version`" && \
- debver=$$gitver && \
- alphatag="" && \
- dirty="" && \
- numcomm="0"; \
- else \
- gitver="`GIT_DIR=$(abs_srcdir)/.git git describe --abbrev=4 --match='v*' HEAD 2>/dev/null`" && \
- debver=`echo $$gitver | sed -e "s/^v//" -e "s/-.*//g"` && \
- alphatag=`echo $$gitver | sed -e "s/.*-//" -e "s/^g//"` && \
- vtag=`echo $$gitver | sed -e "s/-.*//g"` && \
- numcomm=`GIT_DIR=$(abs_srcdir)/.git git rev-list $$vtag..HEAD | wc -l` && \
- GIT_DIR=$(abs_srcdir)/.git git update-index --refresh > /dev/null 2>&1 || true && \
- dirty=`GIT_DIR=$(abs_srcdir)/.git git diff-index --name-only HEAD 2>/dev/null`; \
- fi && \
- if [ -n "$$dirty" ]; then dirty="-dirty"; else dirty=""; fi && \
- if [ "$$numcomm" = "0" ]; then \
- sed \
- -e "s#@version@#$$debver#g" \
- -e "s#-@alphatag@##g" \
- -e "s#.@numcomm@##g" \
- -e "s#@dirty@#$$dirty#g" \
- -e "s#@date@#$$date#g" \
- $(abs_srcdir)/$@.in > $@-t; \
- else \
- sed \
- -e "s#@version@#$$debver#g" \
- -e "s#@alphatag@#$$alphatag#g" \
- -e "s#@numcomm@#$$numcomm#g" \
- -e "s#@dirty@#$$dirty#g" \
- -e "s#@date@#$$date#g" \
- $(abs_srcdir)/$@.in > $@-t; \
- fi;
- chmod a-w $@-t
- mv $@-t $@
-
-deb-clean:
- make -f debian/rules clean
- ./configure
-
-debs: deb-clean dist
- if [ -f .tarball-version ]; then \
- gitver="`cat .tarball-version`"; \
- else \
- gitver="`git describe --abbrev=4 --match='v*' HEAD 2>/dev/null`" && \
- gitver=`echo $$gitver | sed -e "s/^v//" -e "s/-g/-/" -e "s/-/./"`; \
- fi && \
- cp $(TARGZFILE) ../$(PACKAGE_NAME)_$$gitver.orig.tar.gz
- dpkg-buildpackage -uc -us
-
# release/versioning
BUILT_SOURCES = .version
.version:
Those are a few things about this project that you should know.
-Both spec file and debian/ are up for adoption. The spec file
-is most often up to date to handle current HEAD of the tree.
-The debian/ directory is probably obsoleted vs current
-Debian packaging guidelines.
-
I surely welcome patches to support both in a better way.
DO NOT ship kronosnetd. It's an experimental piece of super
+++ /dev/null
-kronosnet (@version@.@numcomm@-@alphatag@@dirty@-1) unstable; urgency=low
-
- * These aren't the droids you're looking for.
-
- -- Autotools generated version <nobody@nowhere.org> @date@
+++ /dev/null
-Source: kronosnet
-Priority: extra
-Maintainer: Fabio M. Di Nitto <fabbione@kronosnet.org>
-Build-Depends: debhelper (>= 7.0.50~), autoconf, autotools-dev, libtool, libqb-dev (>= 0.14.3), libnss3-dev, libnspr4-dev, libssl-dev, pkg-config, libpam-dev, zlib1g-dev, liblz4-dev (>= 1.7.3), liblzo2-dev, liblzma-dev, libbz2-dev, libsctp-dev
-Standards-Version: 3.8.4
-Section: admin
-
-Package: kronosnetd
-Section: admin
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: Multipoint-to-Multipoint VPN daemon
- The kronosnet daemon is a bridge between kronosnet switching engine
- and kernel network tap devices, to create and administer a
- distributed LAN over multipoint-to-multipoint VPNs.
- The daemon does a poor attempt to provide a configure UI similar
- to other known network devices/tools (Cisco, quagga).
- Beside looking horrific, it allows runtime changes and
- reconfiguration of the kronosnet(s) without daemon reload
- or service disruption.
- .
- This package contains the kronosnet daemon and utils.
-
-Package: libtap1
-Section: libs
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: Simple userland wrapper around kernel tap devices
- This is an over-engineered commodity library to manage a pool
- of tap devices and provides the basic
- pre-up.d/up.d/down.d/post-down.d infrastructure.
- .
- This package contains libraries that should be used by libtap clients.
-
-Package: libtap-dev
-Section: libdevel
-Architecture: any
-Depends: libtap1 (= ${binary:Version}), ${misc:Depends}
-Description: Simple userland wrapper around kernel tap devices (developer files)
- This is an over-engineered commodity library to manage a pool
- of tap devices and provides the basic
- pre-up.d/up.d/down.d/post-down.d infrastructure.
- .
- This package contains header files required to build clients for libtap clients.
-
-Package: libknet1
-Section: libs
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: kronosnet core switching implementation
- The whole kronosnet core is implemented in this library.
- Please refer to the not-yet-existing documentation for further
- information.
- .
- This package contains libraries that should be used by libknet clients.
-
-Package: libknet-dev
-Section: libdevel
-Architecture: any
-Depends: libknet1 (= ${binary:Version}), ${misc:Depends}
-Description: kronosnet core switching implementation (developer files)
- The whole kronosnet core is implemented in this library.
- Please refer to the not-yet-existing documentation for further
- information.
- .
- This package contains header files required to build clients for
- libknet clients.
+++ /dev/null
-Format: http://dep.debian.net/deps/dep5
-Upstream-Name: kronosnetd
-Source: https://github.com/fabbione/kronosnet
-
-Files: *
-Copyright: 2010-2015 Red Hat, Inc. All rights reserved.
-License: GPL-2.0+, LGPL-2.0+
-
-License: GPL-2.0+, LGPL-2.0+
- This package is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
- .
- This package is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
- .
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
- .
- On Debian systems, the complete text of the GNU Lesser General
- Public License can be found in "/usr/share/common-licenses/LGPL-2".
+++ /dev/null
-etc/kronosnet/*
-etc/default/kronosnetd
-etc/init.d/kronosnetd
-etc/logrotate.d/kronosnetd
-etc/pam.d/kronosnetd
-usr/sbin/*
-usr/share/man/man8/*
+++ /dev/null
-#!/bin/sh
-
-set -e
-
-case "$1" in
- configure)
- groupadd --force --system @defaultadmgroup@ > /dev/null 2>&1
- ;;
- purge|abort-upgrade|abort-remove|abort-deconfigure)
- ;;
- *)
- echo "postinst called with unknown argument \`$1'" >&2
- exit 0
- ;;
-esac
-
-#DEBHELPER#
-
-exit 0
+++ /dev/null
-usr/include/libknet.h
-usr/lib/libknet.a
-usr/lib/libknet.so
-usr/lib/pkgconfig/libknet.pc
+++ /dev/null
-usr/lib/libknet.so.*
+++ /dev/null
-usr/include/libtap.h
-usr/lib/libtap.a
-usr/lib/libtap.so
-usr/lib/pkgconfig/libtap.pc
+++ /dev/null
-usr/lib/libtap.so.*
+++ /dev/null
-#!/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
-
-# package check requires root and does nasty things
-export DEB_BUILD_OPTIONS=nocheck
-
-%:
- dh $@
-
-override_dh_installinit:
- dh_installinit \
- --package kronosnetd \
- --onlyscripts \
- --no-restart-on-upgrade \
- --init-script=kronosnetd
+++ /dev/null
-3.0 (quilt)