debian swirl logo

Back to the packages list ebtables

#!/usr/bin/make -f

export DEB_BUILD_HARDENING = 1
MAKE_PATH_REDIRECTIONS:= LIBDIR=/lib/ebtables \
			BINDIR= /sbin \
			DESTDIR= debian/ebtables

include /usr/share/cdbs/1/rules/debhelper.mk

CFLAGS+= $(HARDENING_CFLAGS) -fstack-protector-all
LDFLAGS+= $(HARDENING_LDFLAGS)

DEB_DH_INSTALLINIT_ARGS:= -- start 20 S . stop 80 0 1 6 .

build/ebtables::
	make CFLAGS= "$(CFLAGS)" $(MAKE_PATH_REDIRECTIONS)

clean::
		dh_testdir
		rm -f build-stamp
		make clean
		rm -f ebtables.8_ ebtables.sysv_ ebtables-config_ ebtables-save_
		dh_clean

install/ebtables:: build
		dh_testdir
		dh_testroot
		dh_clean
		dh_installdirs
		make install $(MAKE_PATH_REDIRECTIONS)
		rm -f debian/ebtables/sbin/ebtables-save debian/ebtables/sbin/ebtables-restore
		mv debian/ebtables/etc/default/ebtables-config debian/ebtables/etc/default/ebtables
		rm -f debian/ebtables/etc/init.d/ebtables
		mkdir -p debian/ebtables/usr/share/lintian/overrides
		cp debian/ebtables.override debian/ebtables/usr/share/lintian/overrides/ebtables

Builds:

ebtables
ethernet bridge frame table administration