10 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
12 Summary: CoDemux - HTTP port DeMux
17 Group: System Environment/Base
18 Source: %{name}-%{version}.tar.gz
20 Packager: PlanetLab Central <support@planet-lab.org>
21 Distribution: PlanetLab %{plrelease}
22 URL: %(echo %{url} | cut -d ' ' -f 2)
23 #URL: http://codeen.cs.princeton.edu/
24 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
28 codemux is a privileged port (80) sharing service that passes traffic to and from slices via localhost ports.
37 make RPM_VERSION=%{version}.%{taglevel}
40 rm -rf $RPM_BUILD_ROOT
41 make INSTALL_ROOT=$RPM_BUILD_ROOT install
42 install -D -m 644 codemux.logrotate $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d/codemux
45 rm -rf $RPM_BUILD_ROOT
48 %defattr(0644,root,root)
49 %attr(0755,root,root) %{_initrddir}/codemux
50 %config /etc/codemux/codemux.conf
51 %attr(0755,root,root) /usr/sbin/codemux
52 %{_sysconfdir}/logrotate.d/codemux
55 chkconfig codemux reset
57 if [ -z "$PL_BOOTCD" ]; then
58 /etc/init.d/codemux restart
64 chkconfig --del codemux
66 # stop daemon if its currently running
67 if [ "`/etc/init.d/codemux status`" = "running" ]; then
68 /etc/init.d/codemux stop
73 * Fri Mar 28 2008 Faiyaz Ahmed <faiyaza@cs.princeton.edu> - CoDemux-0.1-7 CoDemux-0.1-8
76 * Sun Apr 22 2007 KYOUNGSOO PARK <kyoungso@park.cs.princeton.edu> -