]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
wireless-tools: New package.
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 18 Feb 2010 15:38:57 +0000 (16:38 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 18 Feb 2010 15:38:57 +0000 (16:38 +0100)
pkgs/core/wireless-tools/patches/wireless_tools.29-makefile.patch [new file with mode: 0644]
pkgs/core/wireless-tools/wireless-tools.nm [new file with mode: 0644]

diff --git a/pkgs/core/wireless-tools/patches/wireless_tools.29-makefile.patch b/pkgs/core/wireless-tools/patches/wireless_tools.29-makefile.patch
new file mode 100644 (file)
index 0000000..27df160
--- /dev/null
@@ -0,0 +1,27 @@
+--- wireless_tools.29/Makefile.makefile        2007-04-19 19:42:23.000000000 -0400
++++ wireless_tools.29/Makefile 2007-05-22 17:31:53.000000000 -0400
+@@ -101,12 +101,15 @@ ifdef BUILD_WE_ESSENTIAL
+   WEDEF_FLAG= -DWE_ESSENTIAL=y
+ endif
++ifndef OPT_FLAGS
++  OPT_FLAGS=
++endif
+ # Other flags
+ CFLAGS=-Os -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow \
+       -Wpointer-arith -Wcast-qual -Winline -I.
+ #CFLAGS=-O2 -W -Wall -Wstrict-prototypes -I.
+ DEPFLAGS=-MMD
+-XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS) $(WELIB_FLAG) $(WEDEF_FLAG)
++XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS) $(WELIB_FLAG) $(WEDEF_FLAG) $(OPT_FLAGS)
+ PICFLAG=-fPIC
+ # Standard compilation targets
+@@ -146,6 +149,7 @@ wireless.h:
+ # Compilation of the dynamic library
+ $(DYNAMIC): $(OBJS:.o=.so)
+       $(CC) -shared -o $@ -Wl,-soname,$@ $(STRIPFLAGS) $(LIBS) -lc $^
++      ln -s $@ $(DYNAMIC_LINK)
+ # Compilation of the static library
+ $(STATIC): $(OBJS:.o=.so)
diff --git a/pkgs/core/wireless-tools/wireless-tools.nm b/pkgs/core/wireless-tools/wireless-tools.nm
new file mode 100644 (file)
index 0000000..31861d1
--- /dev/null
@@ -0,0 +1,61 @@
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include $(PKGROOT)/Include
+
+PKG_NAME       = wireless_tools
+PKG_VER        = 29
+PKG_REL        = 0
+
+PKG_MAINTAINER =
+PKG_GROUP      = Networking/Wireless
+PKG_URL        = http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
+PKG_LICENSE    = GPL+
+PKG_SUMMARY    = Wireless ethernet configuration tools.
+
+define PKG_DESCRIPTION
+       This package contain the Wireless tools, used to manipulate \
+       the Wireless Extensions. The Wireless Extension is an interface \
+       allowing you to set Wireless LAN specific parameters and get the \
+       specific stats for wireless networking equipment.
+endef
+
+THISAPP        = $(PKG_NAME).$(PKG_VER)
+
+PKG_TARBALL    = $(THISAPP).tar.gz
+
+define STAGE_BUILD
+       cd $(DIR_APP) && make $(PARALLELISMFLAGS) BUILD_SHARED=1 \
+               FORCE_WEXT_VERSION=16 OPT_FLAGS="$(CFLAGS)"
+endef
+
+define STAGE_INSTALL
+       cd $(DIR_APP) && make install PREFIX=$(BUILDROOT)/usr \
+               INSTALL_DIR=$(BUILDROOT)/sbin INSTALL_LIB=$(BUILDROOT)/lib \
+               INSTALL_MAN=$(BUILDROOT)/usr/share/man
+
+       rm -vf $(BUILDROOT)/lib/libiw.{a,so}
+       -mkdir -pv $(BUILDROOT)/usr/lib
+       ln -svf ../../lib/libiw.so.$(PKG_VER) $(BUILDROOT)/usr/lib/libiw.so
+endef