summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/vlan/vlan_1.8.bb11
1 files changed, 10 insertions, 1 deletions
diff --git a/packages/vlan/vlan_1.8.bb b/packages/vlan/vlan_1.8.bb
index 01ae798240..44cc9fa06f 100644
--- a/packages/vlan/vlan_1.8.bb
+++ b/packages/vlan/vlan_1.8.bb
@@ -1,7 +1,7 @@
DESCRIPTION = "802.1q vlan support program"
RRECOMMENDS = "kernel-module-8021q"
MAINTAINER = "NSLU2 Linux <nslu2-linux@yahoogroups.com>"
-PR = "r1"
+PR = "r2"
S = "${WORKDIR}/vlan/"
@@ -10,6 +10,15 @@ SRC_URI = "http://scry.wanfear.com/~greear/vlan/vlan.1.8.tar.gz \
inherit base
+CCFLAGS = "-g -D_GNU_SOURCE -Wall -I${STAGING_INCDIR}"
+LDLIBS = ""
+
+do_compile() {
+ ${CC} ${CCFLAGS} -c vconfig.c
+ ${CC} ${CCFLAGS} ${LDFLAGS} -o vconfig vconfig.o ${LDLIBS}
+ ${STRIP} vconfig
+}
+
do_install() {
install -d "${D}/usr/sbin"
install -m 755 "${S}/vconfig" "${D}/usr/sbin/vconfig"