CC=gcc
CFLAGS=-Wall -g
LDFLAGS=
+INSTALL=install
CFILES=$(shell echo *.c)
OFILES=$(CFILES:.c=.o)
-rm -f *.o *~ *.bak help.h
distclean: clean
- -rm -f ip6calc
+ -rm -f ip6calc .config.make
.PHONY: clean distclean
-config configure:
- @echo Dummy configure.
+.config.make:
+ ./configure
+
+include .config.make
install:
- echo $(DISTROOT)
+ $(INSTALL) -t $(DESTDIR)$(BINDIR) -s ip6calc
+ $(INSTALL) -t $(DESTDIR)$(BINDIR) ip4toip6
+ $(INSTALL) -m 644 -t $(DESTDIR)$(DOCDIR) help.txt
+ $(INSTALL) -m 644 -t $(DESTDIR)$(DOCDIR) README
--- /dev/null
+#!/bin/bash
+
+echo $*
+
+bindir=/bin
+mandir=/share/man
+prefix=/usr/local
+docdir=/share/doc/ip6calc
+
+TEMP=$(getopt -l prefix: -l mandir: -l bindir: -- "" "$@")
+
+eval set -- "$TEMP"
+while true ; do
+ case "$1" in
+ --prefix) prefix=$2 ; shift 2 ;;
+ --mandir) mandir=$2 ; shift 2 ;;
+ --bindir) bindir=$2 ; shift 2 ;;
+ --docdir) docdir=$2 ; shift 2 ;;
+ --) break ;;
+ *) shift ;;
+ esac
+done
+
+echo "Configuration for ip6calc:"
+echo " PREFIX: $prefix"
+echo " Binaries: $prefix$bindir"
+echo " Man Pages: $prefix$mandir"
+echo " Documentation: $prefix$docdir"
+
+CM=.config.make
+echo '#generated file' >$CM
+echo "PREFIX=$prefix" >>$CM
+echo "BINDIR=$prefix$bindir" >>$CM
+echo "MANDIR=$prefix$mandir" >>$CM
+echo "DOCDIR=$prefix$docdir" >>$CM
+
+exit 0
\ No newline at end of file
--- /dev/null
+Source: ip6calc
+Section: unknown
+Priority: extra
+Maintainer: Konrad Rosenbaum <konrad@devant.devant.lan.local>
+Build-Depends: debhelper (>= 7.0.50~)
+Standards-Version: 3.8.4
+Homepage: http://silmor.de/ipv6.calc.php
+Vcs-Git: git://git.silmor.de/konrad/ip6calc.git
+#Vcs-Browser: http://git.debian.org/?p=collab-maint/ip6calc.git;a=summary
+
+Package: ip6calc
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: IPv6 address calculation tool
+ This package contains the ip6calc program that allows to reformat, merge,
+ mangle and recalculate IPv6 addresses.
--- /dev/null
+This work was packaged for Debian by:
+
+ Konrad Rosenbaum <konrad@silmor.de> on Fri, 20 Apr 2012 11:40:29 +0200
+
+It was downloaded from:
+
+ git://git.silmor.de/konrad/ip6calc.git
+
+Upstream Author(s):
+
+ Konrad Rosenbaum <konrad@silmor.de>
+
+Copyright:
+
+ Copyright (C) 2009,2012 Konrad Rosenbaum
+
+License:
+
+ GPLv3
+
+The Debian packaging is:
+
+ Copyright (C) 2012 Konrad Rosenbaum <konrad@silmor.de>
+
+and is licensed under the GPL version 3,
+see "/usr/share/common-licenses/GPL-3".
--- /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
+
+%:
+ dh $@
--- /dev/null
+3.0 (quilt)