Commit c64f6e63 authored by Andrew Manison's avatar Andrew Manison Committed by Natanael Copa

Added ebtables package with makefile revisions to support ssp: link with gcc,...

Added ebtables package with makefile revisions to support ssp: link with gcc, make install directories
parent 6539a242
--- a/Makefile Sun Jun 21 13:13:25 2009
+++ b/Makefile Wed Oct 28 02:42:43 2009
@@ -85,7 +85,7 @@
.PHONY: libebtc
libebtc: $(OBJECTS2)
- $(LD) -shared -soname libebtc.so -o libebtc.so -lc $(OBJECTS2)
+ $(CC) -shared -Wl,-soname,libebtc.so -o libebtc.so -lc $(OBJECTS2)
ebtables: $(OBJECTS) ebtables-standalone.o libebtc
$(CC) $(CFLAGS) $(CFLAGS_SH_LIB) -o $@ ebtables-standalone.o -I$(KERNEL_INCLUDES) -L. -Lextensions -lebtc $(EXT_LIBSI) \
@@ -153,10 +153,13 @@
tmp3:=$(shell printf $(PIPE) | sed 's/\//\\\//g')
.PHONY: scripts
scripts: ebtables-save ebtables.sysv ebtables-config
+ mkdir -p $(DESTDIR)$(BINDIR)
cat ebtables-save | sed 's/__EXEC_PATH__/$(tmp1)/g' > ebtables-save_
install -m 0755 -o root -g root ebtables-save_ $(DESTDIR)$(BINDIR)/ebtables-save
+ mkdir -p $(DESTDIR)$(INITDIR)
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)$(SYSCONFIGDIR)
cat ebtables-config | sed 's/__SYSCONFIG__/$(tmp2)/g' > ebtables-config_
install -m 0600 -o root -g root ebtables-config_ $(DESTDIR)$(SYSCONFIGDIR)/ebtables-config
rm -f ebtables-save_ ebtables.sysv_ ebtables-config_
# Contributor:
# Maintainer:
pkgname=ebtables
pkgver=2.0.9.1
_realver=v2.0.9-1
pkgrel=0
pkgdesc="Ethernet bridge tables - Linux Ethernet filter for the Linux bridge."
url="http://ebtables.sourceforge.net/"
license="GPL"
depends=""
makedepends="uclibc-dev"
install=
#subpackages="$pkgname-dev $pkgname-doc"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$_realver.tar.gz"
# 0001-add-gcc-no-stack-protector-flag-to-makefile.patch"
# append extra dependencies to -dev subpackage
# remove if not used.
# depends_dev="somepackage-dev"
build() {
cd "$srcdir"/$pkgname-$_realver
patches
for i in ../../*.patch; do
msg "Applying $i"
if ! patch --verbose -p1 -i $i; then
error "$i failed"
return 1
fi
done
make || return 1
make DESTDIR="$pkgdir" install
}
md5sums="0e0c20adf2bba6d91dbd0b74a1a38c33 ebtables-v2.0.9-1.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment