void-packages/srcpkgs/wpa_supplicant/template
Juan RP 85cc462e1d Major infrastructure changes, part 2.
* Moved helpers, common and triggers dirs into xbps-src, where
  they belong.
* Renamed the templates dir to srcpkgs, it was so redundant before.
* Make it possible to add subpkgs with no restriction in names, for
  example udev now has a subpkgs called "libgudev". Previously
  subpkgs were named "${sourcepkg}-${pkgname}".
* xbps-src: changed to look for template files in current directory.
  That means that most arguments from the targets have been removed.
* xbps-src: added a reinstall target, to remove + install.
* xbps-src: do not overwrite binpkgs by default, skip them.

And more that I forgot because it's a mega-commit that I've been
working for some days already...

--HG--
extra : convert_revision : 0f466878584d1e6895d2a234f07ea1b2d1e61b3e
2009-11-22 08:31:44 +01:00

67 lines
2.4 KiB
Text

# Template file for 'wpa_supplicant'
pkgname=wpa_supplicant
version=0.6.9
revision=1
wrksrc=${pkgname}-${version}/${pkgname}
distfiles="http://hostap.epitest.fi/releases/$pkgname-$version.tar.gz"
build_style=gnu_makefile
make_install_target="PREFIX=/usr
DESTDIR=${XBPS_DESTDIR}/${pkgname}-${version} install"
short_desc="WPA/WPA2/IEEE 802.1X Supplicant"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=6e5284fa3f7c56e001fae92486eaa31340db5dd925dcb38bd572d2e8ed70f570
long_desc="
$pkgname is a WPA Supplicant for Linux, BSD, Mac OS X, and Windows with
support for WPA and WPA2 (IEEE 802.11i / RSN). It is suitable for both
desktop/laptop computers and embedded systems. 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.
$pkgname is designed to be a daemon program that runs in the background
and acts as the backend component controlling the wireless connection.
$pkgname supports separate frontend programs and a text-based frontend
(wpa_cli) and a GUI (wpa_gui) are included with $pkgname."
conf_files="/etc/${pkgname}.conf"
openrc_services="$pkgname default"
Add_dependency full glibc
Add_dependency full openssl
Add_dependency full libnl
Add_dependency full readline
Add_dependency build ncurses
Add_dependency build dbus
Add_dependency run ncurses-libs
Add_dependency run dbus-libs
pre_configure()
{
sed -i 's|/usr/local|$(PREFIX)|g' ${wrksrc}/Makefile
cp -f ${FILESDIR}/config ${wrksrc}/.config
}
post_install()
{
local dbus_srv=fi.epitest.hostap.WPASupplicant.service
local dbus_conf=fi.epitest.hostap.WPASupplicant.conf
cd ${wrksrc} || return 1
install -d ${DESTDIR}/etc/init.d
install -m755 ${FILESDIR}/${pkgname}.rc \
${DESTDIR}/etc/init.d/${pkgname}
install -m644 wpa_supplicant.conf ${DESTDIR}/etc
for d in 5 8; do
install -d ${DESTDIR}/usr/share/man/man${d}
done
install -m644 doc/docbook/${pkgname}.conf.5 \
${DESTDIR}/usr/share/man/man5
install -m644 doc/docbook/wpa_*.8 ${DESTDIR}/usr/share/man/man8
install -d ${DESTDIR}/usr/share/dbus-1/system-services
sed -i -e "s|/sbin|/usr/sbin|" dbus-wpa_supplicant.service
install -m644 dbus-wpa_supplicant.service \
${DESTDIR}/usr/share/dbus-1/system-services/${dbus_srv}
install -d ${DESTDIR}/etc/dbus-1/system.d
install -m644 dbus-wpa_supplicant.conf \
${DESTDIR}/etc/dbus-1/system.d/${dbus_conf}
}