diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..db736e6 --- /dev/null +++ b/ChangeLog @@ -0,0 +1,3 @@ +2012-02-12 PPA Maintainer + + * Added utilities from the fluffy project diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..b5748c9 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,35 @@ +ACLOCAL_AMFLAGS = -I m4 +EXTRA_DIST = man + +noinst_LTLIBRARIES = libpcap.la +libpcap_la_SOURCES = src/pcap.c src/pcap.h + +noinst_HEADERS = src/netre.h + +bin_PROGRAMS = hdng unhex xor repr puniq pmerge p4split +hdng_SOURCES = src/hdng.c +unhex_SOURCES = src/unhex.c +xor_SOURCES = src/xor.c +repr_SOURCES = src/repr.c +puniq_SOURCES = src/puniq.c +puniq_LDADD = libpcap.la +pmerge_SOURCES = src/pmerge.c +pmerge_LDADD = libpcap.la +p4split_SOURCES = src/p4split.c +p4split_LDADD = libpcap.la + +man_MANS = man/hdng.1 man/unhex.1 man/xor.1 man/repr.1 man/puniq.1 \ + man/pmerge.1 man/p4split.1 + +docdir = $(datadir)/doc/@PACKAGE@ +doc_DATA = README AUTHORS TODO + +MAINTAINERCLEANFILES = Makefile.in aclocal.m4 build-aux/compile \ + build-aux/config.guess build-aux/config.sub build-aux/depcomp \ + build-aux/install-sh build-aux/missing config.h.in \ + config.h.in~ configure build-aux/ltmain.sh m4/libtool.m4 \ + m4/lt~obsolete.m4 m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4 + +maintainer-clean-local: + rmdir build-aux + rmdir m4 diff --git a/autogen b/autogen new file mode 100755 index 0000000..f7f089e --- /dev/null +++ b/autogen @@ -0,0 +1,8 @@ +#!/bin/sh -e + +[ ! -d "m4" ] && mkdir m4 + +autoreconf --install --force +rm -rf autom4te.cache + +./configure --enable-maintainer-mode --enable-debug diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..cae48b8 --- /dev/null +++ b/configure.ac @@ -0,0 +1,46 @@ +# Process this file with autoconf to produce a configure script + +AC_PREREQ([2.68]) + +AC_INIT([netre-tools], [0.1337], [pi-rho@tyr.cx]) +AC_CONFIG_SRCDIR([src/hdng.c]) +AC_CONFIG_HEADERS([config.h]) +AC_CONFIG_AUX_DIR([build-aux]) +AC_CONFIG_MACRO_DIR([m4]) +AM_INIT_AUTOMAKE([1.11 gnu check-news silent-rules subdir-objects -Wall -Werror]) +AM_MAINTAINER_MODE +AM_SILENT_RULES([yes]) + +# Find programs... +AC_PROG_CC +AM_PROG_CC_C_O +AC_PROG_INSTALL +LT_INIT + +# Check for headers +AC_CHECK_HEADERS([arpa/inet.h netinet/in.h stdint.h stdlib.h string.h strings.h sys/socket.h]) + +# Checks for typedefs, structures, and compiler characteristics. +AC_HEADER_STDBOOL +AC_TYPE_INT32_T +AC_TYPE_SIZE_T +AC_TYPE_UINT16_T +AC_TYPE_UINT32_T +AC_TYPE_UINT64_T +AC_TYPE_UINT8_T + +# Checks for library functions. +AC_CHECK_FUNCS([memset strtol]) + +# debug stuff +AC_ARG_ENABLE([debug], + AS_HELP_STRING([--enable-debug], [Enable debug statements]), + [enable_debug=yes], + [enable_debug=no]) + +AS_IF([test "x$enable_debug" == "xyes"], + AC_DEFINE([DEBUGSTMTS], [1], [enable debugging statements]), + []) + +AC_CONFIG_FILES([Makefile]) +AC_OUTPUT