debian swirl logo

Back to the packages list tcpwatch-httpproxy

#!/usr/bin/make -f


PACKAGE= tcpwatch-httpproxy

export DH_VERBOSE= 1

UPSTREAM_TARBALL= tcpwatch-1.3.tar.gz
DEB_TARBALL= tcpwatch-httpproxy-1.3.orig.tar.gz
UPSTREAM_DIR= tcpwatch


BUILD_DIR= build-tree
I_DIR= debian/$(PACKAGE)/usr

clean:
		echo -n "I'm in "; pwd
		rm -fr $(BUILD_DIR)
		dh_clean unpack-stamp




build: clean unpack
		install -m 755 $(BUILD_DIR)/$(UPSTREAM_DIR)/tcpwatch.py $(I_DIR)/bin/tcpwatch-httpproxy
		install -m 644 $(BUILD_DIR)/$(UPSTREAM_DIR)/CHANGES.txt $(I_DIR)/share/doc/$(PACKAGE)/changelog
		install -m 644 debian/copyright $(I_DIR)/share/doc/$(PACKAGE)
	#install -m 644 debian/changelog $(I_DIR)/share/doc/$(PACKAGE)/changelog.Debian
	# gzip -9 $(I_DIR)/share/doc/$(PACKAGE)/changelog $(I_DIR)/share/doc/$(PACKAGE)/changelog.Debian
		gzip -9 $(I_DIR)/share/doc/$(PACKAGE)/changelog
		dh_installman debian/*.1

unpack: unpack-stamp
		install -m 755 -d $(BUILD_DIR) $(I_DIR)/bin $(I_DIR)/share/doc/$(PACKAGE) $(I_DIR)/share/man
		tar xzf $(UPSTREAM_TARBALL) -C $(BUILD_DIR)


#rename-it:
#	cp -a $(DEB_SRCDIR)/$(UPSTREAM_TARBALL) ../tcpwatch-httpproxy_1.3.orig.tar.gz


unpack-stamp:
		touch $@

binary-arch: binary-indep

binary-indep: binary

binary:
		dh_installchangelogs
		dh_compress
		dh_fixperms
		dh_installdeb
		dh_gencontrol
		dh_md5sums
		dh_builddeb

.PHONY: build clean binary

Builds:

tcpwatch-httpproxy
tcp monitoring and logging tool with support for http 1.1