From 89ab0f5ca8ccddaf70d97465e489786797d49e52 Mon Sep 17 00:00:00 2001 From: William Lima Date: Thu, 5 May 2011 21:36:20 -0300 Subject: [PATCH 1/5] 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 0785962af6cc6fd0e6b7464e7c43f9fbd56d7e16 Mon Sep 17 00:00:00 2001 From: William Lima Date: Sat, 21 May 2011 16:28:35 -0300 Subject: [PATCH 2/5] Update to snapshot 20110521git67984d2 --- .gitignore | 1 + sources | 2 +- wlmproxy.spec | 18 +++++++++++++----- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 0d954a3..efaeedd 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /wlmproxy-0.1.2.tar.gz +/wlmproxy-0.1.3-20110521git67984d2.tar.gz diff --git a/sources b/sources index 24b3536..e63164b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -7159f7aa7f82b98cf2a3caab23128a60 wlmproxy-0.1.2.tar.gz +d949d0ce686984f722f4321b8c77723a wlmproxy-0.1.3-20110521git67984d2.tar.gz diff --git a/wlmproxy.spec b/wlmproxy.spec index de9df23..5a734ca 100644 --- a/wlmproxy.spec +++ b/wlmproxy.spec @@ -1,6 +1,11 @@ +%define gitdate 20110521 +%define git_version 67984d2 + +%define snapshot %{gitdate}git%{git_version} + Name: wlmproxy -Version: 0.1.2 -Release: 2%{?dist} +Version: 0.1.3 +Release: 0.1.%{snapshot}%{?dist} Summary: An advanced proxy for the MSN Messenger protocol Group: System Environment/Daemons @@ -8,10 +13,10 @@ 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 +# git clone -b libevent2 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 +# git archive --format=tar --prefix=wlmproxy-0.1.3/ 67984d2 | gzip -n >wlmproxy-0.1.3-20110521git67984d2.tar.gz +Source0: %{name}-%{version}-%{snapshot}.tar.gz Source1: %{name}.tmpfiles.d BuildRequires: boost-devel @@ -88,6 +93,9 @@ fi %{_sbindir}/* %changelog +* Sat May 21 2011 William Lima - 0.1.3-0.1.20110521git67984d2 +- Update to snapshot 20110521git67984d2 + * Wed May 04 2011 William Lima - 0.1.2-2 - Fix macro consistency - Use gzip -n to exclude timestamp from compressed tarball From 4f971e346a186b3407d618388792a4ad8dc380d4 Mon Sep 17 00:00:00 2001 From: William Lima Date: Thu, 30 Jun 2011 14:01:50 -0300 Subject: [PATCH 3/5] Update to snapshot 20110630gite9e6af2 --- .gitignore | 1 + sources | 2 +- wlmproxy.spec | 18 +++++++++--------- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index efaeedd..a4ad765 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /wlmproxy-0.1.2.tar.gz /wlmproxy-0.1.3-20110521git67984d2.tar.gz +/wlmproxy-0.2.0-20110630gite9e6af2.tar.gz diff --git a/sources b/sources index e63164b..03734ee 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -d949d0ce686984f722f4321b8c77723a wlmproxy-0.1.3-20110521git67984d2.tar.gz +acc63f50f89a336724b593902d772bae wlmproxy-0.2.0-20110630gite9e6af2.tar.gz diff --git a/wlmproxy.spec b/wlmproxy.spec index 5a734ca..92fbef4 100644 --- a/wlmproxy.spec +++ b/wlmproxy.spec @@ -1,10 +1,10 @@ -%define gitdate 20110521 -%define git_version 67984d2 +%define gitdate 20110630 +%define git_version e9e6af2 %define snapshot %{gitdate}git%{git_version} Name: wlmproxy -Version: 0.1.3 +Version: 0.2.0 Release: 0.1.%{snapshot}%{?dist} Summary: An advanced proxy for the MSN Messenger protocol @@ -15,7 +15,7 @@ URL: http://wlmproxy.org # following commands to generate the tarball: # git clone -b libevent2 https://github.com/poetinha/wlmproxy.git # cd wlmproxy -# git archive --format=tar --prefix=wlmproxy-0.1.3/ 67984d2 | gzip -n >wlmproxy-0.1.3-20110521git67984d2.tar.gz +# git archive --format=tar --prefix=wlmproxy-0.2.0/ e9e6af2 | gzip -n >wlmproxy-0.2.0-20110630gite9e6af2.tar.gz Source0: %{name}-%{version}-%{snapshot}.tar.gz Source1: %{name}.tmpfiles.d @@ -56,13 +56,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 || \ @@ -82,7 +79,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 @@ -93,6 +90,9 @@ fi %{_sbindir}/* %changelog +* Thu Jun 30 2011 William Lima - 0.2.0-0.1.20110630gite9e6af2 +- Update to snapshot 20110630gite9e6af2 + * Sat May 21 2011 William Lima - 0.1.3-0.1.20110521git67984d2 - Update to snapshot 20110521git67984d2 From 4dc8832f7adab83e897190f9bd4a53a88d41fd55 Mon Sep 17 00:00:00 2001 From: William Lima Date: Sun, 24 Jul 2011 15:47:15 -0300 Subject: [PATCH 4/5] Rebuilt for Boost 1.47 --- wlmproxy.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wlmproxy.spec b/wlmproxy.spec index 92fbef4..16e3767 100644 --- a/wlmproxy.spec +++ b/wlmproxy.spec @@ -5,7 +5,7 @@ Name: wlmproxy Version: 0.2.0 -Release: 0.1.%{snapshot}%{?dist} +Release: 0.2.%{snapshot}%{?dist} Summary: An advanced proxy for the MSN Messenger protocol Group: System Environment/Daemons @@ -90,6 +90,9 @@ fi %{_sbindir}/* %changelog +* Sun Jul 24 2011 William Lima - 0.2.0-0.2.20110630gite9e6af2 +- Rebuilt for Boost 1.47 + * Thu Jun 30 2011 William Lima - 0.2.0-0.1.20110630gite9e6af2 - Update to snapshot 20110630gite9e6af2 From c1f95606b91773e588432fc92b64b8864ce1bbfa Mon Sep 17 00:00:00 2001 From: William Lima Date: Fri, 18 Nov 2011 14:44:30 -0200 Subject: [PATCH 5/5] wlmproxy has reached its end of life --- .gitignore | 3 -- dead.package | 1 + sources | 1 - wlmproxy.spec | 107 -------------------------------------------- wlmproxy.tmpfiles.d | 1 - 5 files changed, 1 insertion(+), 112 deletions(-) delete mode 100644 .gitignore create mode 100644 dead.package delete mode 100644 sources delete mode 100644 wlmproxy.spec delete mode 100644 wlmproxy.tmpfiles.d diff --git a/.gitignore b/.gitignore deleted file mode 100644 index a4ad765..0000000 --- a/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -/wlmproxy-0.1.2.tar.gz -/wlmproxy-0.1.3-20110521git67984d2.tar.gz -/wlmproxy-0.2.0-20110630gite9e6af2.tar.gz diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..8a7aecb --- /dev/null +++ b/dead.package @@ -0,0 +1 @@ +wlmproxy has reached its end of life \ No newline at end of file diff --git a/sources b/sources deleted file mode 100644 index 03734ee..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -acc63f50f89a336724b593902d772bae wlmproxy-0.2.0-20110630gite9e6af2.tar.gz diff --git a/wlmproxy.spec b/wlmproxy.spec deleted file mode 100644 index 16e3767..0000000 --- a/wlmproxy.spec +++ /dev/null @@ -1,107 +0,0 @@ -%define gitdate 20110630 -%define git_version e9e6af2 - -%define snapshot %{gitdate}git%{git_version} - -Name: wlmproxy -Version: 0.2.0 -Release: 0.2.%{snapshot}%{?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 -b libevent2 https://github.com/poetinha/wlmproxy.git -# cd wlmproxy -# git archive --format=tar --prefix=wlmproxy-0.2.0/ e9e6af2 | gzip -n >wlmproxy-0.2.0-20110630gite9e6af2.tar.gz -Source0: %{name}-%{version}-%{snapshot}.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 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} - -%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 -%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 -* Sun Jul 24 2011 William Lima - 0.2.0-0.2.20110630gite9e6af2 -- Rebuilt for Boost 1.47 - -* Thu Jun 30 2011 William Lima - 0.2.0-0.1.20110630gite9e6af2 -- Update to snapshot 20110630gite9e6af2 - -* Sat May 21 2011 William Lima - 0.1.3-0.1.20110521git67984d2 -- Update to snapshot 20110521git67984d2 - -* 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 deleted file mode 100644 index c875b26..0000000 --- a/wlmproxy.tmpfiles.d +++ /dev/null @@ -1 +0,0 @@ -d /var/run/wlmproxy 0755 wlmproxy wlmproxy -