Hello community, here is the log from the commit of package hostapd for openSUSE:Factory checked in at 2012-11-08 08:04:50 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/hostapd (Old) and /work/SRC/openSUSE:Factory/.hostapd.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "hostapd", Maintainer is "GLin@suse.com" Changes: -------- --- /work/SRC/openSUSE:Factory/hostapd/hostapd.changes 2012-05-21 07:25:20.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.hostapd.new/hostapd.changes 2012-11-08 08:04:51.000000000 +0100 @@ -1,0 +2,5 @@ +Tue Nov 6 04:41:17 UTC 2012 - crrodriguez@opensuse.org + +- Add Native systemd units + +------------------------------------------------------------------- New: ---- hostapd.service ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ hostapd.spec ++++++ --- /var/tmp/diff_new_pack.wayrwI/_old 2012-11-08 08:04:52.000000000 +0100 +++ /var/tmp/diff_new_pack.wayrwI/_new 2012-11-08 08:04:52.000000000 +0100 @@ -23,8 +23,9 @@ BuildRequires: libnl-devel %endif BuildRequires: openssl-devel +BuildRequires: pkgconfig(systemd) Summary: Turns Your WLAN Card into a WPA capable Access Point -License: BSD-3-Clause ; GPL-2.0+ +License: BSD-3-Clause and GPL-2.0+ Group: Hardware/Wifi Version: 1.0 Release: 0 @@ -33,8 +34,10 @@ PreReq: %insserv_prereq Source: http://hostap.epitest.fi/releases/hostapd-%{version}.tar.gz Source1: hostapd.init +Source2: hostapd.service Patch: hostapd.dif Patch1: hostapd-tmp.diff +%{?systemd_requires} %description hostapd is a user space daemon for access point and authentication @@ -60,7 +63,7 @@ %build cd hostapd -CFLAGS="$RPM_OPT_FLAGS" CC="%{__cc}" make %{?_smp_mflags} V=1 +CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE $(getconf LFS_CFLAGS)" CC="%{__cc}" make %{?_smp_mflags} V=1 %install cd hostapd @@ -80,14 +83,20 @@ install -m 644 hostapd.vlan %{buildroot}/etc install -m 600 hostapd.wpa_psk %{buildroot}/etc install -m 644 hostapd.8 %{buildroot}/%{_mandir}/man8 +install -D -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/hostapd.service +%pre +%service_add_pre hostapd.service %post +%service_add_post hostapd.service %insserv_cleanup %preun +%service_del_preun hostapd.service %{stop_on_removal hostapd} %postun +%service_del_postun hostapd.service %{restart_on_update hostapd} %insserv_cleanup @@ -101,5 +110,6 @@ %{_sbindir}/* %doc hostapd/ChangeLog COPYING hostapd/README hostapd/wired.conf hostapd/hostapd.conf %doc %{_mandir}/man8/* +%{_unitdir}/hostapd.service %changelog ++++++ hostapd.service ++++++ [Unit] Description=Hostapd IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator After=network.target [Service] ExecStart=/usr/sbin/hostapd /etc/hostapd.conf ExecReload=/bin/kill -HUP $MAINPID [Install] WantedBy=multi-user.target -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@hilbert.suse.de