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