OSDN Git Service

Remove broken debian package building directory. I hope it will be revived in v3.
authorTATEISHI Katsuyuki <kt@wheel.jp>
Wed, 12 Aug 2009 10:35:57 +0000 (19:35 +0900)
committerTATEISHI Katsuyuki <kt@wheel.jp>
Wed, 12 Aug 2009 10:35:57 +0000 (19:35 +0900)
17 files changed:
Makefile.am
configure.ac
debian/Makefile.am [deleted file]
debian/changelog [deleted file]
debian/compat [deleted file]
debian/control [deleted file]
debian/copyright [deleted file]
debian/dirs [deleted file]
debian/docs [deleted file]
debian/dpkg-checkbuild [deleted file]
debian/init.d/l7vsd [deleted file]
debian/l7vs.conffiles [deleted file]
debian/l7vs.dirs [deleted file]
debian/l7vs.files [deleted file]
debian/l7vs.postinst [deleted file]
debian/l7vs.postrm [deleted file]
debian/rules [deleted file]

index e39e7a6..51bbe4a 100644 (file)
@@ -31,8 +31,7 @@ SUBDIRS = \
        init.d \
        l7directord \
        man \
-       doc \
-       debian
+       doc
 
 docdir = ${datadir}/doc/${PACKAGE}-${VERSION}
 dist_doc_DATA = \
index 84cc6e1..4f979ab 100644 (file)
@@ -127,7 +127,6 @@ AC_SUBST(snmpagent_libs)
 
 AC_CONFIG_FILES([Makefile
                  conf/Makefile
-                 debian/Makefile
                  doc/Makefile
                  doc/heartbeat-ra/Makefile
                  init.d/Makefile
diff --git a/debian/Makefile.am b/debian/Makefile.am
deleted file mode 100644 (file)
index 9cbc0de..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-EXTRA_DIST = \
-changelog \
-compat \
-control \
-copyright \
-rules \
-dirs \
-docs \
-dpkg-checkbuild \
-init.d/l7vsd \
-l7vs.conffiles \
-l7vs.dirs \
-l7vs.files \
-l7vs.postinst \
-l7vs.postrm
-
-clean-local:
-       rm -f *.substvars *.debhelper files
-       rm -r -f l7vs tmp
diff --git a/debian/changelog b/debian/changelog
deleted file mode 100644 (file)
index d9bbe13..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-ultramonkey-l7-2.0.0 (2-1) unstable; urgency=low
-
-  * Initial release (Closes: #850)
-  * 
-
- -- Shinya TAKEBAYASHI <makoto@kanon-net.jp>  Mon, 25 Aug 2008 09:10:53 +0900
-
diff --git a/debian/compat b/debian/compat
deleted file mode 100644 (file)
index 7ed6ff8..0000000
+++ /dev/null
@@ -1 +0,0 @@
-5
diff --git a/debian/control b/debian/control
deleted file mode 100644 (file)
index 90500db..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-Source: ultramonkey-l7-2.0.0
-Section: Network
-Priority: extra
-Maintainer: Shinya TAKEBAYASHI <makoto@kanon-net.jp>
-Build-Depends: debhelper (>= 5), autotools-dev, libglib2.0-dev, libsnmp9-dev, libboost-dev, 
-Standards-Version: 3.7.2
-
-Package: ultramonkey-l7-2.0.0
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: Layer-7 load balancer daemon
-
diff --git a/debian/copyright b/debian/copyright
deleted file mode 100644 (file)
index 7b922aa..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-This package was debianized by Makoto SAWATARI <makoto@suigintoh> on
-Mon, 25 Aug 2008 09:04:46 +0900.
-
-It was downloaded from http://sourceforge.jp/projects/ultramonkey-l7/
-
-Copyright: (C) 2008, UltraMonkey-L7 proj.
-
-License:
-
-    This program is free software: you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation, either version 3 of the License, or
-    (at your option) any later version.
-
-    This program 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 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/>.
-
-
-The Debian packaging is (C) 2008, Shinya TAKEBAYASHI <makoto@kanon-net.jp> and
-is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
-
-
-# Please also look if there are files or directories which have a
-# different copyright/license attached and list them here.
-
diff --git a/debian/dirs b/debian/dirs
deleted file mode 100644 (file)
index ca882bb..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-usr/bin
-usr/sbin
diff --git a/debian/docs b/debian/docs
deleted file mode 100644 (file)
index e845566..0000000
+++ /dev/null
@@ -1 +0,0 @@
-README
diff --git a/debian/dpkg-checkbuild b/debian/dpkg-checkbuild
deleted file mode 100755 (executable)
index 5cc0b40..0000000
+++ /dev/null
@@ -1,196 +0,0 @@
-#!/usr/bin/perl -w
-# GPL copyright 2001 by Joey Hess <joeyh@debian.org>
-
-use strict;
-use Getopt::Long;
-
-sub usage {
-       print STDERR <<EOF;
-Usage: dpkg-checkbuild [-B] [control-file]
-       -B              binary-only, ignore -Indep
-       control-file    control file to process [Default: debian/control]
-EOF
-}
-
-my ($me)=$0=~m:.*/(.+):;
-
-my $binary_only=0;
-if (! GetOptions('-B' => \$binary_only)) {
-       usage();
-       exit(2);
-}
-my $control=shift || "debian/control";
-
-open (CONTROL, $control) || die "$control: $!\n";
-my @status=parse_status();
-my (@unmet, @conflicts);
-while (<CONTROL>) {
-       chomp;
-       last if $_ eq ''; # end of first stanza
-
-       if (/^Build-Depends:\s+(.*)/i) {
-               push @unmet, build_depends($1, @status);
-       }
-       elsif (/^Build-Conflicts:\s+(.*)/i) {
-               push @conflicts, build_conflicts($1, @status);
-       }
-       elsif (! $binary_only && /^Build-Depends-Indep:\s+(.*)/i) {
-               push @unmet, build_depends($1, @status);
-       }
-       elsif (! $binary_only && /^Build-Conflicts-Indep:\s+(.*)/i) {
-               push @conflicts, build_conflicts($1, @status);
-       }
-}
-close CONTROL;
-
-if (@unmet) {
-       print STDERR "$me: Unmet build dependancies: ";
-       print STDERR join(", ", @unmet), "\n";
-}
-if (@conflicts) {
-       print STDERR "$me: Build conflicts: ";
-       print STDERR join(", ", @conflicts), "\n";
-}
-exit 1 if @unmet || @conflicts;
-
-# This part could be replaced. Silly little status file parser.
-# thanks to Matt Zimmerman. Returns two hash references that
-# are exactly what the other functions need...
-sub parse_status {
-       my $status=shift || "/var/lib/dpkg/status";
-       
-       my %providers;
-       my %version;
-       local $/ = '';
-       open(STATUS, "<$status") || die "$status: $!\n";
-       while (<STATUS>) {
-               next unless /^Status: .*ok installed$/m;
-       
-               my ($package) = /^Package: (.*)$/m;
-               push @{$providers{$package}}, $package;
-               ($version{$package}) = /^Version: (.*)$/m;
-       
-               if (/^Provides: (.*)$/m) {
-                       foreach (split(/,\s+/, $1)) {
-                               push @{$providers{$_}}, $package;
-                       }
-               }
-       }
-       close STATUS;
-
-       return \%version, \%providers;
-}
-
-# This function checks the build dependancies passed in as the first
-# parameter. If they are satisfied, returns false. If they are unsatisfied,
-# an list of the unsatisfied depends is returned.
-#
-# Additional parameters that must be passed:
-# * A reference to a hash of all "ok installed" the packages on the system,
-#   with the hash key being the package name, and the value being the 
-#   installed version.
-# * A reference to a hash, where the keys are package names, and the
-#   value is a true value iff some package installed on the system provides
-#   that package (all installed packages provide themselves)
-#
-# Optionally, the architecture the package is to be built for can be passed
-# in as the 4th parameter. If not set, dpkg will be queried for the build
-# architecture.
-sub build_depends {
-       return check_line(1, @_);
-}
-
-# This function is exactly like unmet_build_depends, except it
-# checks for build conflicts, and returns a list of the packages
-# that are installed and are conflicted with.
-sub build_conflicts {
-       return check_line(0, @_);
-}
-
-# This function does all the work. The first parameter is 1 to check build
-# deps, and 0 to check build conflicts.
-sub check_line {
-       my $build_depends=shift;
-       my $line=shift;
-       my %version=%{shift()};
-       my %providers=%{shift()};
-       my $build_arch=shift || `dpkg --print-architecture`;
-       chomp $build_arch;
-
-       my @unmet=();
-       foreach my $dep (split(/,\s+/, $line)) {
-               my $ok=0;
-               my @possibles=();
-ALTERNATE:     foreach my $alternate (split(/\s*\|\s*/, $dep)) {
-                       my ($package, $rest)=split(/\s+/, $alternate, 2);
-       
-                       # Check arch specifications.
-                       if (defined $rest && $rest=~m/\[(.*?)\]/) {
-                               my $arches=lc($1);
-                               my $seen_arch='';
-                               foreach my $arch (split(' ', $arches)) {
-                                       if ($arch eq $build_arch) {
-                                               $seen_arch=1;
-                                               next;
-                                       }
-                                       elsif ($arch eq "!$build_arch") {
-                                               next ALTERNATE;
-                                       }
-                                       elsif ($arch =~ /!/) {
-                                               # This is equivilant to
-                                               # having seen the current arch,
-                                               # unless the current arch
-                                               # is also listed..
-                                               $seen_arch=1;
-                                       }
-                               }
-                               if (! $seen_arch) {
-                                       next;
-                               }
-                       }
-                       
-                       # This is a possibile way to meet the dependancy.
-                       # Remove the arch stuff from $alternate.
-                       $alternate=~s/\s+\[.*?\]//;
-                       push @possibles, $alternate;
-       
-                       # Check version.
-                       if (defined $rest && $rest=~m/\((..)\s+(.*?)\)/) {
-                               my $relation=$1;
-                               my $version=$2;
-                               
-                               if (! exists $version{$package}) {
-                                       # Not installed at all, so fail.
-                                       next;
-                               }
-                               else {
-                                       # Compare installed and needed
-                                       # version number.
-                                       system("dpkg", "--compare-versions",
-                                               $version{$package}, $relation,
-                                                $version);
-                                       if (($? >> 8) != 0) {
-                                               next; # fail
-                                       }
-                               }
-                       }
-                       elsif (! defined $providers{$package}) {
-                               # It's not a versioned dependancy, and
-                               # nothing provides it, so fail.
-                               next;
-                       }
-       
-                       # If we get to here, the dependancy was met.
-                       $ok=1;
-               }
-       
-               if (@possibles && (($build_depends && ! $ok) ||
-                                  (! $build_depends && $ok))) {
-                       # TODO: this could return a more complex
-                       # data structure instead to save re-parsing.
-                       push @unmet, join (" | ", @possibles);
-               }
-       }
-
-       return @unmet;
-}
diff --git a/debian/init.d/l7vsd b/debian/init.d/l7vsd
deleted file mode 100644 (file)
index 56109f6..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-#!/bin/sh
-# Start/Stop script for l7vsd
-#
-# chkconfig: 2345 95 34
-# description: Start and stop l7vsd
-#              
-# processname: l7vsd
-#
-# Author: Shinya TAKEBAYASHI
-# Released: October 2007
-# Licence: GNU General Public Licence
-
-# Source function library.
-#. /etc/rc.d/init.d/functions
-
-[ -f /usr/sbin/l7vsd ] || exit 0
-
-PROG="l7vsd"
-DAEMON="/usr/sbin/l7vsd"
-SOCKFILE=/var/run/l7vs/l7vs
-
-start() {
-    RETVAL=0
-    if [ -a $SOCKFILE ]; then
-       echo "$PROG is already running."
-       RETVAL=-1
-    else
-       echo -n $"Starting $PROG: " 
-       start-stop-daemon --start --quiet --nicelevel +19 --exec $DAEMON
-       RETVAL=$?
-    fi
-    echo
-    return $RETVAL
-}
-
-stop() {
-    echo -n $"Stopping $PROG: "
-    start-stop-daemon --stop --quiet --exec $DAEMON
-    echo
-    RETVAL=$?
-    if [ $RETVAL -eq 0 ]; then
-       rm -rf $SOCKFILE
-    fi
-    
-    return $RETVAL
-}
-
-status() {
-    PID=`pidof $DAEMON`
-    RETVAL=$?
-    if [ $RETVAL != 0 ]; then
-       echo "l7vsd is not running."
-    else
-       echo "l7vsd is running with pid: $PID"
-    fi
-}
-
-case "$1" in
-       start)
-           start
-           ;;
-       
-       stop)
-           stop
-           ;;
-       
-       status)
-           status l7vsd
-           ;;
-
-       restart)
-           stop
-           start
-           ;;
-
-       condrestart)
-           if test "x`pidof l7vsd`" != x; then
-               stop
-               start
-           fi
-           ;;
-       
-       *)
-           echo $"Usage: $0 {start|stop|restart|condrestart|status}"
-           RETVAL=1
-
-esac
-
-exit $RETVAL
diff --git a/debian/l7vs.conffiles b/debian/l7vs.conffiles
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/debian/l7vs.dirs b/debian/l7vs.dirs
deleted file mode 100644 (file)
index 9dca282..0000000
+++ /dev/null
@@ -1 +0,0 @@
-var/run/l7vs
diff --git a/debian/l7vs.files b/debian/l7vs.files
deleted file mode 100644 (file)
index 994e364..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-usr/sbin/l7vsd
-usr/sbin/l7vsadm
-usr/lib/l7vs/protomod_cinsert.so
-usr/lib/l7vs/protomod_url.so
-usr/lib/l7vs/sched_rr.so
-usr/lib/l7vs/sched_lc.so
-usr/lib/l7vs/sched_wrr.so
-
diff --git a/debian/l7vs.postinst b/debian/l7vs.postinst
deleted file mode 100755 (executable)
index b46d545..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-#! /bin/sh
-# postinst script for l7vs
-
-#DEBHELPER#
-
-if [ "$1" = "configure" ]; then
-       #update-rc.d l7vs defaults >/dev/null
-       :
-fi
-
-exit 0
-
-
diff --git a/debian/l7vs.postrm b/debian/l7vs.postrm
deleted file mode 100755 (executable)
index a039c84..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-#! /bin/sh
-# postrm script for l7vs
-
-#DEBHELPER#
-
-if [ "$1" = "remove" ]; then
-       #update-rc.d -f l7vs remove >/dev/null
-       rm -f /var/run/l7vs/*
-fi
-
-exit 0
diff --git a/debian/rules b/debian/rules
deleted file mode 100755 (executable)
index 0b4fad7..0000000
+++ /dev/null
@@ -1,107 +0,0 @@
-#!/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)
-
-
-CFLAGS = -Wall -g
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-       CFLAGS += -O0
-else
-       CFLAGS += -O2
-endif
-
-config.status: configure
-       dh_testdir
-       # Add here commands to configure the package.
-       ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
-
-
-build: build-stamp
-
-build-stamp:  config.status
-       dh_testdir
-
-       # Add here commands to compile the package.
-       $(MAKE)
-       #docbook-to-man debian/ultramonkey-l7-2.0.0.sgml > ultramonkey-l7-2.0.0.1
-
-       touch $@
-
-clean:
-       dh_testdir
-       dh_testroot
-       rm -f build-stamp 
-
-       # Add here commands to clean up after the build process.
-       -$(MAKE) distclean
-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
-
-
-       dh_clean 
-
-install: build
-       dh_testdir
-       dh_testroot
-       dh_clean -k 
-       dh_installdirs
-
-       # Add here commands to install the package into debian/ultramonkey-l7-2.0.0.
-       $(MAKE) DESTDIR=$(CURDIR)/debian/ultramonkey-l7-2.0.0 install
-
-
-# Build architecture-independent files here.
-binary-indep: build install
-# We have nothing to do by default.
-
-# Build architecture-dependent files here.
-binary-arch: build install
-       dh_testdir
-       dh_testroot
-       dh_installchangelogs CHANGES
-       dh_installdocs
-       dh_installexamples
-#      dh_install
-#      dh_installmenu
-#      dh_installdebconf       
-#      dh_installlogrotate
-#      dh_installemacsen
-#      dh_installpam
-#      dh_installmime
-#      dh_python
-#      dh_installinit
-#      dh_installcron
-#      dh_installinfo
-       dh_installman
-       dh_link
-       dh_strip
-       dh_compress
-       dh_fixperms
-#      dh_perl
-#      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