| 
                Last change
                  on this file since 2033 was
                  1965,
                  checked in by achernya, 14 years ago
           | 
        
        
          | 
            Init script (systemd unit) for Scripts Whois service
           | 
        
        | 
            File size:
            1.4 KB
           | 
      
      
        
  | Rev | Line |   | 
|---|
| [1965] | 1 | Summary:   whoisd for <scripts.mit.edu> (virtualhost aware) | 
|---|
 | 2 | Group:     Applications/System | 
|---|
 | 3 | Name:      whoisd | 
|---|
 | 4 | Version:   0.%{scriptsversion} | 
|---|
 | 5 | Release:   1 | 
|---|
 | 6 | Vendor:    The scripts.mit.edu Team (scripts@mit.edu) | 
|---|
 | 7 | URL:       http://scripts.mit.edu | 
|---|
 | 8 | License:   GPL | 
|---|
 | 9 | Source0:   %{name}.tar.gz | 
|---|
 | 10 |  | 
|---|
| [763] | 11 | %define debug_package %{nil} | 
|---|
 | 12 |  | 
|---|
| [1965] | 13 | Requires:      python-twisted-core | 
|---|
 | 14 | BuildRequires: systemd-units | 
|---|
| [763] | 15 |  | 
|---|
| [1965] | 16 | Requires(post):   systemd-units | 
|---|
 | 17 | Requires(preun):  systemd-units | 
|---|
 | 18 | Requires(postun): systemd-units | 
|---|
 | 19 | Requires(post):   systemd-sysv | 
|---|
 | 20 |  | 
|---|
| [763] | 21 | %description | 
|---|
 | 22 |  | 
|---|
 | 23 |  | 
|---|
 | 24 | %prep | 
|---|
 | 25 | %setup -q -n %{name} | 
|---|
 | 26 |  | 
|---|
 | 27 | %build | 
|---|
 | 28 | ./configure | 
|---|
 | 29 |  | 
|---|
 | 30 | %install | 
|---|
 | 31 | make install DESTDIR=$RPM_BUILD_ROOT exec_prefix=/usr/local | 
|---|
 | 32 |  | 
|---|
| [1965] | 33 | %post | 
|---|
 | 34 | if [ $1 -eq 1 ] ; then | 
|---|
 | 35 |     # Initial installation | 
|---|
 | 36 |     /bin/systemctl enable scripts-whoisd.service >/dev/null 2>&1 || : | 
|---|
 | 37 | fi | 
|---|
| [763] | 38 |  | 
|---|
| [1965] | 39 | %preun | 
|---|
 | 40 | if [ $1 -eq 0 ]; then | 
|---|
 | 41 |     /bin/systemctl --no-reload disable scripts-whoisd.service >/dev/null 2>&1 || : | 
|---|
 | 42 |     /bin/systemctl stop scripts-whoisd.service > /dev/null 2>&1 || : | 
|---|
 | 43 | fi | 
|---|
 | 44 |  | 
|---|
 | 45 | %postun | 
|---|
 | 46 | /bin/systemctl daemon-reload >/dev/null 2>&1 || : | 
|---|
 | 47 | if [ $1 -ge 1 ]; then | 
|---|
 | 48 |     /bin/systemctl try-restart scripts-whoisd.service >/dev/null 2>&1 || : | 
|---|
 | 49 | fi | 
|---|
 | 50 |  | 
|---|
| [763] | 51 | %files | 
|---|
 | 52 | %defattr(0644,root,root,-) | 
|---|
 | 53 | /usr/local/libexec/whoisd.tac | 
|---|
| [1965] | 54 | %defattr(0644,root,root) | 
|---|
 | 55 | /lib/systemd/system/scripts-whoisd.service | 
|---|
| [763] | 56 |  | 
|---|
 | 57 | %changelog | 
|---|
| [1965] | 58 | * Thu Aug 25 2011 Alexander Chernyakhovsky <achernya@mit.edu> 0-1 | 
|---|
 | 59 | - package systemd service file | 
|---|
| [763] | 60 |  | 
|---|
 | 61 | * Tue Jun 03 2008 Joe Presbrey <presbrey@mit.edu> 0.00 | 
|---|
 | 62 | - prerelease | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.