]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blobdiff - wpa_supplicant/wpa_supplicant.nm
Move all packages to root.
[people/arne_f/ipfire-3.x.git] / wpa_supplicant / wpa_supplicant.nm
diff --git a/wpa_supplicant/wpa_supplicant.nm b/wpa_supplicant/wpa_supplicant.nm
new file mode 100644 (file)
index 0000000..05730fd
--- /dev/null
@@ -0,0 +1,57 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = wpa_supplicant
+version    = 0.7.3
+release    = 1
+
+groups     = Sytem/Base
+url        = http://hostap.epitest.fi/releases/
+license    = BSD
+summary    = WPA/WPA2/IEEE 802.1X Supplicant.
+
+description
+       wpa_supplicant is a WPA Supplicant for Linux, BSD and Windows with support
+       for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant is the IEEE 802.1X/WPA
+       component that is used in the client stations. It implements key negotiation
+       with a WPA Authenticator and it controls the roaming and IEEE 802.11
+       authentication/association of the wlan driver.
+end
+
+source_dl  = http://hostap.epitest.fi/releases/
+
+build
+       requires
+               dbus-devel
+               openssl-devel
+               pkg-config
+       end
+
+       build
+               # Copy our config file for build
+               cp %{DIR_SOURCE}/wpa_supplicant.config %{DIR_APP}/wpa_supplicant/.config
+
+               # Build wpa_supplicant
+               cd %{DIR_APP}/wpa_supplicant && make %{PARALLELISMFLAGS}
+       end
+
+       install
+               mkdir -pv %{BUILDROOT}/etc/wpa_supplicant
+               mkdir -pv %{BUILDROOT}/usr/sbin
+
+               # Install config file
+               install -D -m 0600 %{DIR_SOURCE}/wpa_supplicant.conf %{BUILDROOT}/etc/wpa_supplicant
+
+               # Install binaries
+               install -m 0755 %{DIR_APP}/wpa_supplicant/wpa_passphrase %{BUILDROOT}/usr/sbin
+               install -m 0755 %{DIR_APP}/wpa_supplicant/wpa_cli %{BUILDROOT}/usr/sbin
+               install -m 0755 %{DIR_APP}/wpa_supplicant/wpa_supplicant %{BUILDROOT}/usr/sbin
+       end
+end
+
+packages
+       package %{name}
+       end
+end