| 1 | Summary: scripts.mit.edu glue associated with file execution | 
|---|
| 2 | Group: Applications/System | 
|---|
| 3 | Name: execsys | 
|---|
| 4 | Version: 0.00 | 
|---|
| 5 | Release: scripts | 
|---|
| 6 | Vendor: The scripts.mit.edu Team (scripts@mit.edu) | 
|---|
| 7 | URL: http://scripts.mit.edu | 
|---|
| 8 | License: GPL | 
|---|
| 9 | Source: %{name}.tar.gz | 
|---|
| 10 | BuildRoot: %{_tmppath}/%(%{__id_u} -n)-%{name}-%{version}-root | 
|---|
| 11 | %define debug_package %{nil} | 
|---|
| 12 |  | 
|---|
| 13 | %description | 
|---|
| 14 |  | 
|---|
| 15 | scripts.mit.edu glue associated with file execution | 
|---|
| 16 | Contains: | 
|---|
| 17 | - Apache configuration file <execsys.conf> | 
|---|
| 18 | - binfmt_misc init script <execsys-binfmt> | 
|---|
| 19 | - Binary for serving static content <staticsys-cat> | 
|---|
| 20 | See http://scripts.mit.edu/wiki for more information. | 
|---|
| 21 |  | 
|---|
| 22 | %prep | 
|---|
| 23 | %setup -q -n %{name} | 
|---|
| 24 |  | 
|---|
| 25 | %build | 
|---|
| 26 | ./configure --with-syscat=/usr/local/sbin --with-pl=/usr/bin/perl --with-php=/usr/bin/php-cgi --with-py=/usr/bin/python | 
|---|
| 27 | make | 
|---|
| 28 |  | 
|---|
| 29 | %install | 
|---|
| 30 | [ $RPM_BUILD_ROOT != / ] && rm -rf $RPM_BUILD_ROOT | 
|---|
| 31 | install -D execsys.conf $RPM_BUILD_ROOT/etc/httpd/conf.d/execsys.conf | 
|---|
| 32 | install -D execsys-binfmt $RPM_BUILD_ROOT/etc/init.d/execsys-binfmt | 
|---|
| 33 | install -D staticsys-cat $RPM_BUILD_ROOT/usr/local/sbin/staticsys-cat | 
|---|
| 34 |  | 
|---|
| 35 | %clean | 
|---|
| 36 | [ $RPM_BUILD_ROOT != / ] && rm -rf $RPM_BUILD_ROOT | 
|---|
| 37 |  | 
|---|
| 38 | %files | 
|---|
| 39 | %defattr(0644, root, root) | 
|---|
| 40 | /etc/httpd/conf.d/execsys.conf | 
|---|
| 41 | %defattr(0755, root, root) | 
|---|
| 42 | /usr/local/sbin/staticsys-cat | 
|---|
| 43 | /etc/init.d/execsys-binfmt | 
|---|
| 44 |  | 
|---|
| 45 | %post | 
|---|
| 46 | chkconfig --add execsys-binfmt | 
|---|
| 47 | service execsys-binfmt start | 
|---|
| 48 |  | 
|---|
| 49 | %preun | 
|---|
| 50 | service execsys-binfmt stop | 
|---|
| 51 | chkconfig --del execsys-binfmt | 
|---|
| 52 |  | 
|---|
| 53 | %changelog | 
|---|
| 54 |  | 
|---|
| 55 | * Sat Sep 30 2006  Jeff Arnold <jbarnold@MIT.EDU> 0.00 | 
|---|
| 56 | - initial prerelease version | 
|---|