blob: 1580fd80a741d251679fb63be72093e686eb1aa3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# these will be installed in BINDIR
bin_PROGRAMS = dag_scrubber #scramble_ips
#dist_bin_SCRIPTS = lander_reanonymize
dag_scrubber_SOURCES = dag_scrubber.c cryptopANT.c cryptopANT.h
dag_scrubber_SOURCES += patricia.c patricia.h
dag_scrubber_SOURCES += scramble_wlw.c scramble_wlw.h
#scramble_ips_SOURCES = scramble_ips.c cryptopANT.c cryptopANT.h
AM_LDFLAGS= -lcrypto -lpcap
RPMBUILD_SRC = ~/rpmbuild/SOURCES/$(distdir).tar.gz
RPMBUILD_SPEC = ~/rpmbuild/SPECS/dag_scrubber.spec
#validate: scramble_ips keyfile
# @./scramble_ips keyfile <ip4s | ./scramble_ips -r keyfile | cmp -l ip4s - \
# && echo "ipv4 scrambling/descrambling validation passed" \
# || echo "ipv4 scrambling/descrambling failed"
# @./scramble_ips keyfile <ip6s | ./scramble_ips -r keyfile | cmp -l ip6s - \
# && echo "ipv6 scrambling/descrambling validation passed" \
# || echo "ipv6 scrambling/descrambling failed"
.PHONY: rpmbuild
rpmbuild: dist-gzip
cp dag_scrubber.spec $(RPMBUILD_SPEC)
cp $(distdir).tar.gz $(RPMBUILD_SRC)
rpmbuild -ba $(RPMBUILD_SPEC)
|