From f7bc1a3626109c717a1694b24577f0b128b81f64 Mon Sep 17 00:00:00 2001 From: William Lima Date: Thu, 5 May 2011 21:42:57 -0300 Subject: [PATCH 1/2] Initial import (#701494). --- .gitignore | 1 + sources | 1 + wlmproxy.spec | 96 +++++++++++++++++++++++++++++++++++++++++++++ wlmproxy.tmpfiles.d | 1 + 4 files changed, 99 insertions(+) create mode 100644 wlmproxy.spec create mode 100644 wlmproxy.tmpfiles.d diff --git a/.gitignore b/.gitignore index e69de29..0d954a3 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/wlmproxy-0.1.2.tar.gz diff --git a/sources b/sources index e69de29..24b3536 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +7159f7aa7f82b98cf2a3caab23128a60 wlmproxy-0.1.2.tar.gz diff --git a/wlmproxy.spec b/wlmproxy.spec new file mode 100644 index 0000000..de9df23 --- /dev/null +++ b/wlmproxy.spec @@ -0,0 +1,96 @@ +Name: wlmproxy +Version: 0.1.2 +Release: 2%{?dist} +Summary: An advanced proxy for the MSN Messenger protocol + +Group: System Environment/Daemons +License: BSD +URL: http://wlmproxy.org +# The source for this package was pulled from upstream's vcs. Use the +# following commands to generate the tarball: +# git clone https://github.com/poetinha/wlmproxy.git +# cd wlmproxy +# git archive --format=tar --prefix=wlmproxy-0.1.2/ v0.1.2 | gzip -n >wlmproxy-0.1.2.tar.gz +Source0: %{name}-%{version}.tar.gz +Source1: %{name}.tmpfiles.d + +BuildRequires: boost-devel +BuildRequires: dolphin-connector-devel >= 1.1 +BuildRequires: libevent-devel +BuildRequires: openssl-devel +BuildRequires: libxml2-devel +Requires(pre): shadow-utils +Requires(post): chkconfig +Requires(preun):chkconfig, initscripts +%if 0%{?fedora} >= 15 +Requires: systemd-units +%endif + +%description +wlmproxy is a transparent proxy server for the MSN protocol. +It supports all versions of MSNP, from 8 up to 21. + +%prep +%setup -q + +%build +make %{?_smp_mflags} CXXFLAGS="$RPM_OPT_FLAGS" + +%install +rm -rf $RPM_BUILD_ROOT + +mkdir -p -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/%{name} +mkdir -p -m 755 $RPM_BUILD_ROOT%{_sbindir} +mkdir -p $RPM_BUILD_ROOT%{_initrddir} +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig +mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/%{name} + +%if 0%{?fedora} >= 15 +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d +install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d/%{name}.conf +%endif + +install -p -m 755 wlmproxy $RPM_BUILD_ROOT%{_sbindir} +install -p -m 755 extras/wlmproxy.init $RPM_BUILD_ROOT%{_initrddir}/%{name} +install -p -m 640 wlmproxy.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name} + +cat <$RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/%{name} +OPTS="-u wlmproxy -F /var/run/wlmproxy/wlmproxy.pid" +EOF + +%pre +getent group wlmproxy >/dev/null || groupadd -r wlmproxy +getent passwd wlmproxy >/dev/null || \ +useradd -r -g wlmproxy -d '/' -s /sbin/nologin \ + -c 'wlmproxy daemon account' wlmproxy +exit 0 + +%post +/sbin/chkconfig --add %{name} + +%preun +if [ $1 -eq 0 ]; then + /sbin/service %{name} stop >/dev/null 2>&1 + /sbin/chkconfig --del %{name} +fi + +%files +%defattr(-,root,root,-) +%doc ChangeLog create_mysql.sql LICENSE README TODO +%attr(644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/%{name} +%{_initrddir}/%{name} +%if 0%{?fedora} >= 15 +%config(noreplace) %{_sysconfdir}/tmpfiles.d/%{name}.conf +%endif +%attr(755,wlmproxy,wlmproxy) %dir %{_localstatedir}/run/%{name} +%attr(755,root,root) %dir %{_sysconfdir}/%{name} +%attr(640,root,wlmproxy) %config(noreplace) %{_sysconfdir}/%{name}/* +%{_sbindir}/* + +%changelog +* Wed May 04 2011 William Lima - 0.1.2-2 +- Fix macro consistency +- Use gzip -n to exclude timestamp from compressed tarball + +* Mon May 02 2011 William Lima - 0.1.2-1 +- Initial package diff --git a/wlmproxy.tmpfiles.d b/wlmproxy.tmpfiles.d new file mode 100644 index 0000000..c875b26 --- /dev/null +++ b/wlmproxy.tmpfiles.d @@ -0,0 +1 @@ +d /var/run/wlmproxy 0755 wlmproxy wlmproxy - From d7cf00b1802bd016a14dadccdcbb9375f7a7ff30 Mon Sep 17 00:00:00 2001 From: William Lima Date: Thu, 30 Jun 2011 14:52:26 -0300 Subject: [PATCH 2/2] Update to 0.1.3 --- .gitignore | 1 + sources | 2 +- wlmproxy.spec | 16 ++++++++-------- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 0d954a3..2ced275 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /wlmproxy-0.1.2.tar.gz +/wlmproxy-0.1.3.tar.gz diff --git a/sources b/sources index 24b3536..48b7665 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -7159f7aa7f82b98cf2a3caab23128a60 wlmproxy-0.1.2.tar.gz +6c38ebd21164e929fe6b6c1888392323 wlmproxy-0.1.3.tar.gz diff --git a/wlmproxy.spec b/wlmproxy.spec index de9df23..fb622f8 100644 --- a/wlmproxy.spec +++ b/wlmproxy.spec @@ -1,6 +1,6 @@ Name: wlmproxy -Version: 0.1.2 -Release: 2%{?dist} +Version: 0.1.3 +Release: 1%{?dist} Summary: An advanced proxy for the MSN Messenger protocol Group: System Environment/Daemons @@ -10,7 +10,7 @@ URL: http://wlmproxy.org # following commands to generate the tarball: # git clone https://github.com/poetinha/wlmproxy.git # cd wlmproxy -# git archive --format=tar --prefix=wlmproxy-0.1.2/ v0.1.2 | gzip -n >wlmproxy-0.1.2.tar.gz +# git archive --format=tar --prefix=wlmproxy-0.1.3/ v0.1.3 | gzip -n >wlmproxy-0.1.3.tar.gz Source0: %{name}-%{version}.tar.gz Source1: %{name}.tmpfiles.d @@ -51,13 +51,10 @@ install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d/%{name}.conf %endif install -p -m 755 wlmproxy $RPM_BUILD_ROOT%{_sbindir} +install -p -m 644 extras/wlmproxy.sysconfig $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/%{name} install -p -m 755 extras/wlmproxy.init $RPM_BUILD_ROOT%{_initrddir}/%{name} install -p -m 640 wlmproxy.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name} -cat <$RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/%{name} -OPTS="-u wlmproxy -F /var/run/wlmproxy/wlmproxy.pid" -EOF - %pre getent group wlmproxy >/dev/null || groupadd -r wlmproxy getent passwd wlmproxy >/dev/null || \ @@ -77,7 +74,7 @@ fi %files %defattr(-,root,root,-) %doc ChangeLog create_mysql.sql LICENSE README TODO -%attr(644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/%{name} +%config(noreplace) %{_sysconfdir}/sysconfig/%{name} %{_initrddir}/%{name} %if 0%{?fedora} >= 15 %config(noreplace) %{_sysconfdir}/tmpfiles.d/%{name}.conf @@ -88,6 +85,9 @@ fi %{_sbindir}/* %changelog +* Thu Jun 30 2011 William Lima - 0.1.3-1 +- Update to 0.1.3 + * Wed May 04 2011 William Lima - 0.1.2-2 - Fix macro consistency - Use gzip -n to exclude timestamp from compressed tarball