diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2009-11-29 12:56:04 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2009-11-29 12:56:04 +0100 |
commit | 81b38e16646cc758202b51b5174da63e2e09646a (patch) | |
tree | e41f1b233610cb255cab82d5ad189b84abbbffa8 | |
parent | 6dcd99bad08d0cc3b6b88b2e1b2e56ca6f1d3114 (diff) |
fix my broken first try ;)
-rw-r--r-- | package/ebtables/Makefile | 10 | ||||
-rw-r--r-- | package/ebtables/patches/patch-Makefile | 77 |
2 files changed, 83 insertions, 4 deletions
diff --git a/package/ebtables/Makefile b/package/ebtables/Makefile index 8499b12e9..05392d4b9 100644 --- a/package/ebtables/Makefile +++ b/package/ebtables/Makefile @@ -3,26 +3,28 @@ include ${TOPDIR}/rules.mk -PKG_NAME:= iptables +PKG_NAME:= ebtables PKG_VERSION:= 2.0.9 PKG_RELEASE:= 1 -PKG_MD5SUM:= 44f13990132c20299c1994cd6f425140 +PKG_MD5SUM:= 0e0c20adf2bba6d91dbd0b74a1a38c33 PKG_DESCR:= ethernet bridging firewall tool PKG_SECTION:= net PKG_URL:= http://ebtables.sourceforge.net PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=ebtables/} DISTFILES:= ${PKG_NAME}-v${PKG_VERSION}-1.tar.gz +WRKDIST= ${WRKDIR}/${PKG_NAME}-v${PKG_VERSION}-1 include ${TOPDIR}/mk/package.mk $(eval $(call PKG_template,EBTABLES,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) -CONFIGURE_STYLE:= gnu BUILD_STYLE:= auto INSTALL_STYLE:= auto post-install: - ${INSTALL_DIR} ${IDIR_EBTABLES}/usr/sbin + ${INSTALL_DIR} ${IDIR_EBTABLES}/usr/sbin ${IDIR_EBTABLES}/usr/lib + ${INSTALL_BIN} ${WRKINST}/usr/sbin/ebtables ${IDIR_EBTABLES}/usr/sbin + ${CP} ${WRKINST}/usr/lib/*.so ${IDIR_EBTABLES}/usr/lib include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/ebtables/patches/patch-Makefile b/package/ebtables/patches/patch-Makefile new file mode 100644 index 000000000..455893dcc --- /dev/null +++ b/package/ebtables/patches/patch-Makefile @@ -0,0 +1,77 @@ +--- ebtables-v2.0.9-1.orig/Makefile 2009-06-21 15:13:25.000000000 +0200 ++++ ebtables-v2.0.9-1/Makefile 2009-11-29 12:54:31.000000000 +0100 +@@ -8,10 +8,10 @@ PROGDATE:=June\ 2009 + + # default paths + LIBDIR:=/usr/lib +-MANDIR:=/usr/local/man +-BINDIR:=/usr/local/sbin ++MANDIR:=/usr/man ++BINDIR:=/usr/sbin + ETCDIR:=/etc +-INITDIR:=/etc/rc.d/init.d ++INITDIR:=/etc/init.d + SYSCONFIGDIR:=/etc/sysconfig + DESTDIR:= + +@@ -154,28 +154,29 @@ tmp3:=$(shell printf $(PIPE) | sed 's/\/ + .PHONY: scripts + scripts: ebtables-save ebtables.sysv ebtables-config + cat ebtables-save | sed 's/__EXEC_PATH__/$(tmp1)/g' > ebtables-save_ +- install -m 0755 -o root -g root ebtables-save_ $(DESTDIR)$(BINDIR)/ebtables-save ++ install -m 0755 ebtables-save_ $(DESTDIR)$(BINDIR)/ebtables-save + cat ebtables.sysv | sed 's/__EXEC_PATH__/$(tmp1)/g' | sed 's/__SYSCONFIG__/$(tmp2)/g' > ebtables.sysv_ +- install -m 0755 -o root -g root ebtables.sysv_ $(DESTDIR)$(INITDIR)/ebtables ++ mkdir -p $(DESTDIR)$(INITDIR) ++ install -m 0755 ebtables.sysv_ $(DESTDIR)$(INITDIR)/ebtables + cat ebtables-config | sed 's/__SYSCONFIG__/$(tmp2)/g' > ebtables-config_ +- install -m 0600 -o root -g root ebtables-config_ $(DESTDIR)$(SYSCONFIGDIR)/ebtables-config ++ #install -m 0600 ebtables-config_ $(DESTDIR)$(SYSCONFIGDIR)/ebtables-config + rm -f ebtables-save_ ebtables.sysv_ ebtables-config_ + + $(MANDIR)/man8/ebtables.8: ebtables.8 + mkdir -p $(DESTDIR)$(@D) + sed 's/$$(VERSION)/$(PROGVERSION)/' ebtables.8 | sed 's/$$(DATE)/$(PROGDATE)/' > ebtables.8_ +- install -m 0644 -o root -g root ebtables.8_ $(DESTDIR)$@ ++ install -m 0644 ebtables.8_ $(DESTDIR)$@ + rm -f ebtables.8_ + + $(ETHERTYPESFILE): ethertypes + mkdir -p $(DESTDIR)$(@D) +- install -m 0644 -o root -g root $< $(DESTDIR)$@ ++ install -m 0644 $< $(DESTDIR)$@ + + .PHONY: exec + exec: ebtables ebtables-restore + mkdir -p $(DESTDIR)$(BINDIR) +- install -m 0755 -o root -g root $(PROGNAME) $(DESTDIR)$(BINDIR)/$(PROGNAME) +- install -m 0755 -o root -g root ebtables-restore $(DESTDIR)$(BINDIR)/ebtables-restore ++ install -m 0755 $(PROGNAME) $(DESTDIR)$(BINDIR)/$(PROGNAME) ++ install -m 0755 ebtables-restore $(DESTDIR)$(BINDIR)/ebtables-restore + + .PHONY: install + install: $(MANDIR)/man8/ebtables.8 $(ETHERTYPESFILE) exec scripts +@@ -199,18 +200,18 @@ release: + rm -f extensions/ebt_inat.c + rm -rf $(CVSDIRS) + mkdir -p include/linux/netfilter_bridge +- install -m 0644 -o root -g root \ ++ install -m 0644 \ + $(KERNEL_INCLUDES)/linux/netfilter_bridge.h include/linux/ + # To keep possible compile error complaints about undefined ETH_P_8021Q + # off my back +- install -m 0644 -o root -g root \ ++ install -m 0644 \ + $(KERNEL_INCLUDES)/linux/if_ether.h include/linux/ +- install -m 0644 -o root -g root \ ++ install -m 0644 \ + $(KERNEL_INCLUDES)/linux/types.h include/linux/ +- install -m 0644 -o root -g root \ ++ install -m 0644 \ + $(KERNEL_INCLUDES)/linux/netfilter_bridge/*.h \ + include/linux/netfilter_bridge/ +- install -m 0644 -o root -g root \ ++ install -m 0644 \ + include/ebtables.h include/linux/netfilter_bridge/ + make clean + touch * |