From 78a271cec18b56e85326b7e70a9aeceeda7a5fbe Mon Sep 17 00:00:00 2001 From: Holger Schurig Date: Thu, 10 Mar 2005 12:38:50 +0000 Subject: added initscript added default config moved sample config into -doc package added ${DATE} to package version split out wpa_passphrase and wpa_cli into separate packages BKrev: 42303fda6GAk8FseeVw-87ni-piweQ --- packages/wpa-supplicant/files/init.sh | 0 packages/wpa-supplicant/files/ramses/defaults | 0 packages/wpa-supplicant/wpa-supplicant_cvs.bb | 30 +++++++++++++++++++++++---- 3 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 packages/wpa-supplicant/files/init.sh create mode 100644 packages/wpa-supplicant/files/ramses/defaults (limited to 'packages/wpa-supplicant') diff --git a/packages/wpa-supplicant/files/init.sh b/packages/wpa-supplicant/files/init.sh new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/wpa-supplicant/files/ramses/defaults b/packages/wpa-supplicant/files/ramses/defaults new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/wpa-supplicant/wpa-supplicant_cvs.bb b/packages/wpa-supplicant/wpa-supplicant_cvs.bb index 7e80f3e448..baa423a684 100644 --- a/packages/wpa-supplicant/wpa-supplicant_cvs.bb +++ b/packages/wpa-supplicant/wpa-supplicant_cvs.bb @@ -4,34 +4,56 @@ LICENSE = "GPL" MAINTAINER = "Holger Schurig" HOMEPAGE = "http://hostap.epitest.fi/wpa_supplicant/" DEPENDS = "openssl" +PV = "0.0cvs${CVSDATE}" PR = "r1" SRC_URI = "cvs://anonymous@hostap.epitest.fi/cvs;module=hostap \ file://use-channel.patch;patch=1 \ file://driver-hermes.patch;patch=1 \ file://defconfig \ + file://defaults \ + file://init.sh \ file://wpa_supplicant.conf" S = "${WORKDIR}/hostap/wpa_supplicant" + +PACKAGES_prepend = "wpa-supplicant-passphrase wpa-supplicant-cli " +FILES_wpa-supplicant-passphrase = "/usr/sbin/wpa_passphrase" +FILES_wpa-supplicant-cli = "/usr/sbin/wpa_cli" + +RRECOMMENDS_${PN} = "wpa-supplicant-passphrase wpa-supplicant-cli" + + +INITSCRIPT_NAME = "wpa" +INITSCRIPT_PARAMS = "defaults 10" +inherit update-rc.d + + do_configure () { install -m 0755 ${WORKDIR}/defconfig .config } + do_compile () { make } + do_install () { + set -x install -d ${D}${sbindir} install -m755 wpa_supplicant ${D}${sbindir} install -m755 wpa_passphrase ${D}${sbindir} install -m755 wpa_cli ${D}${sbindir} - install -d ${D}${sysconfdir} - install -m644 ${WORKDIR}/wpa_supplicant.conf ${D}${sysconfdir} + install -d ${D}${localstatedir}/run/wpa_supplicant install -d ${D}${docdir}/wpa_supplicant - install -m644 README ${D}${docdir}/wpa_supplicant -} + install -m644 README ${WORKDIR}/wpa_supplicant.conf ${D}${docdir}/wpa_supplicant + install -d ${D}${sysconfdir}/init.d + install -m700 ${WORKDIR}/init.sh ${D}${sysconfdir}/init.d/wpa + install -d ${D}${sysconfdir}/defaults + install -m600 ${WORKDIR}/defaults ${D}${sysconfdir}/defaults/wpa +} -- cgit v1.2.3