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