加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
wifidog.spec 1.76 KB
一键复制 编辑 原始数据 按行查看 历史
# $Id: wifidog.spec.in 901 2006-01-17 18:58:13Z mina $
%define name wifidog
%define lib_name libhttpd
%define version 20090925
%define release 1mdk
Summary: The WiFi Guard Dog project is a complete and embeedable captive portal solution for wireless community groups or individuals who wish to open a free HotSpot while still preventing abuse of their Internet connection.
Name: %{name}
Version: %{version}
Release: %{release}
Source: http://download.sourceforge.net/wifidog/%{name}-%{version}.tar.gz
Group: Applications/System
License: GPL
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Prereq: /sbin/ldconfig
%description
The WiFi Guard Dog project is a complete and embeedable captive portal solution for wireless community groups or individuals who wish to open a free HotSpot while still preventing abuse of their Internet connection.
%prep
%setup -q
%build
%configure
%make
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_prefix}
# Will this overide previous config file?
mkdir -p $RPM_BUILD_ROOT/etc
cp wifidog.conf $RPM_BUILD_ROOT/etc
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
cp scripts/init.d/wifidog $RPM_BUILD_ROOT/etc/rc.d/init.d
chmod +x $RPM_BUILD_ROOT/etc/rc.d/init.d/wifidog
%makeinstall
%post
/sbin/ldconfig
%_post_service wifidog
%postun
/sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,0755)
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README FAQ doc/html
%config /etc/wifidog.conf
%config /etc/rc.d/init.d/wifidog
%{_bindir}/*
%{_libdir}/*.a
%{_libdir}/*.la
%{_libdir}/*.so*
%{_includedir}/*
%changelog
* Sun Aug 29 2004 Guillaume Beaudoin <isf@soli.ca>
- Littles fixes and libofx leftover.
- Prefix changed to /usr to match init.d script (define removed).
* Sat Mar 8 2004 Benoit Grgoire <bock@step.polymtl.ca>
- Created spec file
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化