Skip to content

Commit

Permalink
Properly autotoolize package.
Browse files Browse the repository at this point in the history
Use automake rather than hand-tailor a Makefile.in that has a few mistakes
in it.

Make it possible to disable knockd at ./configure time.

Fail if knockd is to be built and libpcap is not found.

Remove all checks that were not used.

Ignore extra files.
  • Loading branch information
Flameeyes committed Feb 15, 2012
1 parent 42c6c9e commit 9d5e6f0
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 6,913 deletions.
20 changes: 20 additions & 0 deletions .gitignore
@@ -0,0 +1,20 @@
*.o
*~
.deps
/Makefile
/Makefile.in
/aclocal.m4
/autom4te.cache/
/config.h
/config.h.in
/config.log
/config.status
/configure
/depcomp
/doc/*.1
/install-sh
/knock
/knock-*.tar.*
/knockd
/missing
/stamp-h1
21 changes: 21 additions & 0 deletions Makefile.am
@@ -0,0 +1,21 @@
AM_CFLAGS=-g -Wall -pedantic -fno-exceptions

bin_PROGRAMS = knock

man_MANS = doc/knock.1

if BUILD_KNOCKD
sbin_PROGRAMS = knockd
man_MANS += doc/knockd.1
sysconf_DATA = knockd.conf
endif

dist_doc_DATA = README TODO ChangeLog COPYING

knock_SOURCES = src/knock.c
knockd_SOURCES = src/knockd.c src/list.c src/list.h

%.1: %.1.in
sed -e "s/#VERSION#/$(VERSION)/" $< > $@

EXTRA_DIST = doc/knock.1 doc/knock.1.in doc/knockd.1 doc/knockd.1.in knockd.conf
85 changes: 0 additions & 85 deletions Makefile.in

This file was deleted.

159 changes: 0 additions & 159 deletions config.h.in

This file was deleted.

0 comments on commit 9d5e6f0

Please sign in to comment.