[1] | 1 | Summary: scripts.mit.edu locker administration system |
---|
| 2 | Group: Applications/System |
---|
[67] | 3 | Name: accountadm |
---|
[926] | 4 | Version: 0.%{scriptsversion} |
---|
[120] | 5 | Release: 0 |
---|
[1] | 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 |
---|
[933] | 11 | BuildRequires: scripts-openafs-devel |
---|
[1327] | 12 | BuildRequires: hesinfo |
---|
| 13 | BuildRequires: openldap-clients |
---|
| 14 | BuildRequires: krb5-devel |
---|
| 15 | BuildRequires: sudo |
---|
| 16 | Requires: hesinfo |
---|
| 17 | Requires: openldap-clients |
---|
| 18 | Requires: sudo |
---|
[1] | 19 | %define debug_package %{nil} |
---|
[36] | 20 | Prereq: /usr/bin/fs, /usr/bin/pts |
---|
[1] | 21 | |
---|
| 22 | %description |
---|
| 23 | |
---|
| 24 | scripts.mit.edu locker administration system |
---|
| 25 | Contains: |
---|
| 26 | - Perl script for checking whether a user is a locker admin <admof> |
---|
| 27 | - setuid C program used to start a signup request <signup-scripts-frontend> |
---|
| 28 | - Perl script that handles signup requests <signup-scripts-backend> |
---|
[765] | 29 | - vhostadd,vhostedit: admin tools for adding and editing virtualhosts |
---|
| 30 | - cronload: userspace tool for setting crontab from Athena |
---|
[1] | 31 | See http://scripts.mit.edu/wiki for more information. |
---|
| 32 | |
---|
| 33 | %prep |
---|
| 34 | %setup -q -n %{name} |
---|
| 35 | |
---|
| 36 | %build |
---|
[36] | 37 | ./configure --with-fs=/usr/bin/fs --with-pts=/usr/bin/pts |
---|
[1] | 38 | make |
---|
| 39 | |
---|
| 40 | %install |
---|
| 41 | [ $RPM_BUILD_ROOT != / ] && rm -rf $RPM_BUILD_ROOT |
---|
[89] | 42 | make install DESTDIR=$RPM_BUILD_ROOT prefix=/usr/local |
---|
[1] | 43 | |
---|
| 44 | %clean |
---|
| 45 | [ $RPM_BUILD_ROOT != / ] && rm -rf $RPM_BUILD_ROOT |
---|
| 46 | |
---|
| 47 | %files |
---|
| 48 | %defattr(0644, root, root) |
---|
[134] | 49 | /usr/local/etc/mbashrc |
---|
[1] | 50 | %defattr(0755, root, root) |
---|
[134] | 51 | /usr/local/bin/mbash |
---|
[125] | 52 | /usr/local/bin/admof |
---|
[765] | 53 | /usr/local/bin/cronload |
---|
[125] | 54 | /usr/local/sbin/ssh-admof |
---|
[1] | 55 | /usr/local/sbin/signup-scripts-backend |
---|
[765] | 56 | /usr/local/sbin/vhostadd |
---|
| 57 | /usr/local/sbin/vhostedit |
---|
[1377] | 58 | /usr/local/sbin/ldap-backup |
---|
[1] | 59 | %defattr(4755, signup, signup) |
---|
| 60 | /usr/local/sbin/signup-scripts-frontend |
---|
| 61 | |
---|
| 62 | %pre |
---|
[392] | 63 | groupadd -g 102 signup || [ $? -eq 9 ] |
---|
| 64 | useradd -u 102 -g signup -d /afs/athena.mit.edu/contrib/scripts/signup -M signup || [ $? -eq 9 ] |
---|
[1] | 65 | |
---|
| 66 | %postun |
---|
[918] | 67 | if [ "$1" = "0" ] ; then |
---|
| 68 | userdel signup |
---|
| 69 | fi |
---|
[1] | 70 | |
---|
| 71 | %changelog |
---|
[918] | 72 | * Wed Dec 31 2008 Quentin Smith <quentin@mit.edu> - 0.917-0 |
---|
| 73 | - don't delete signup user on upgrades |
---|
[1] | 74 | |
---|
| 75 | * Sat Sep 30 2006 Jeff Arnold <jbarnold@MIT.EDU> 0.00 |
---|
| 76 | - prerelease |
---|