X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=codemux.spec;h=a29c3bfe047feec49782c8c87240b2257787b63a;hb=3c587537bc60ec20a8e0d12959e0665a9f560c8b;hp=b212eceb2c11300ffe3faa401125ce360bbc7de7;hpb=0004e089d32f355a47338f6394b8d2780494b047;p=codemux.git diff --git a/codemux.spec b/codemux.spec index b212ece..a29c3bf 100644 --- a/codemux.spec +++ b/codemux.spec @@ -1,14 +1,27 @@ -Summary: CoDemux - HTTP port demultiplexer -Name: codemux -Version: 0.4 -Release: 1 +%define name codemux +%define version 0.1 +%define taglevel 15 + +%define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}} + +Summary: CoDemux - HTTP port DeMux +Name: %{name} +Version: %{version} +Release: %{release} License: Private Group: System Environment/Base -URL: http://codeen.cs.princeton.edu/ -Source0: %{name}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +Source: %{name}-%{version}.tar.gz +Vendor: PlanetLab +Packager: PlanetLab Central +Distribution: PlanetLab %{plrelease} +URL: %{SCMURL} +#URL: http://codeen.cs.princeton.edu/ +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +#Requires: vnet %description +codemux is a privileged port (80) sharing service that passes traffic to and from slices via localhost ports. + %prep %setup -q @@ -16,28 +29,28 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root make clean %build -make +make RPM_VERSION=%{version}.%{taglevel} %install rm -rf $RPM_BUILD_ROOT - -make install +make INSTALL_ROOT=$RPM_BUILD_ROOT install +install -D -m 644 codemux.logrotate $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d/codemux %clean rm -rf $RPM_BUILD_ROOT %files -%defattr(0644,root,root,) +%defattr(0644,root,root) %attr(0755,root,root) %{_initrddir}/codemux -%config /etc/codemux/codemux.conf -%attr(0755,root,root) /usr/local/planetlab/sbin/codemux +%config(noreplace) /etc/codemux/codemux.conf +%attr(0755,root,root) /usr/sbin/codemux +%{_sysconfdir}/logrotate.d/codemux %post -chkconfig codemux reset +chkconfig --add codemux if [ -z "$PL_BOOTCD" ]; then - /sbin/ldconfig - /etc/init.d/codemux restart + /etc/init.d/codemux condrestart fi %preun @@ -51,9 +64,32 @@ if [ "$1" = 0 ]; then fi fi -%doc - %changelog +* Mon Jan 24 2011 Thierry Parmentelat - codemux-0.1-15 +- no semantic change - just fixed specfile for git URL + +* Tue Mar 09 2010 S.Çağlar Onur - CoDemux-0.1-14 +- introduce an IP field + +* Tue Dec 02 2008 Daniel Hokka Zakrisson - CoDemux-0.1-13 +- Add condrestart to the initscript and add a way to limit codemux to one IP. + +* Fri Jun 06 2008 Stephen Soltesz - CoDemux-0.1-12 +- +- KyoungSoo added fix to prevent failure with new compilers +- + +* Fri May 09 2008 Stephen Soltesz - CoDemux-0.1-11 +- + +* Thu Apr 24 2008 Faiyaz Ahmed - CoDemux-0.1-10 +- +- Examples in conf file are enough. Removed PLC specific entries. +- + +* Fri Mar 28 2008 Faiyaz Ahmed - CoDemux-0.1-7 CoDemux-0.1-8 +- + * Sun Apr 22 2007 KYOUNGSOO PARK - - Initial build.