source: server/fedora/specs/accountadm.spec @ 361

Last change on this file since 361 was 176, checked in by jbarnold, 18 years ago
-M is needed to avoid creating homedir, not -m
File size: 1.8 KB
Line 
1Summary: scripts.mit.edu locker administration system
2Group: Applications/System
3Name: accountadm
4Version: 0.00
5Release: 0
6Vendor: The scripts.mit.edu Team (scripts@mit.edu)
7URL: http://scripts.mit.edu
8License: GPL
9Source: %{name}.tar.gz
10BuildRoot: %{_tmppath}/%(%{__id_u} -n)-%{name}-%{version}-root
11%define debug_package %{nil}
12Prereq: /usr/bin/fs, /usr/bin/pts
13
14%description 
15
16scripts.mit.edu locker administration system
17Contains:
18 - Perl script for checking whether a user is a locker admin <admof>
19 - setuid C program used to start a signup request <signup-scripts-frontend>
20 - Perl script that handles signup requests <signup-scripts-backend>
21See http://scripts.mit.edu/wiki for more information.
22
23%prep
24%setup -q -n %{name}
25
26%build
27./configure --with-fs=/usr/bin/fs --with-pts=/usr/bin/pts
28make
29
30%install
31[ $RPM_BUILD_ROOT != / ] && rm -rf $RPM_BUILD_ROOT
32make install DESTDIR=$RPM_BUILD_ROOT prefix=/usr/local
33
34%clean
35[ $RPM_BUILD_ROOT != / ] && rm -rf $RPM_BUILD_ROOT
36
37%files
38%defattr(0644, root, root)
39/usr/local/etc/mbashrc
40%defattr(0755, root, root)
41/usr/local/bin/mbash
42/usr/local/bin/admof
43/usr/local/sbin/ssh-admof
44/usr/local/sbin/signup-scripts-backend
45%defattr(4755, signup, signup)
46/usr/local/sbin/signup-scripts-frontend
47
48%pre
49groupadd -g 102 signup
50useradd -u 102 -g signup -d /afs/athena.mit.edu/contrib/scripts/signup -M signup
51
52%post
53cat >>/etc/sudoers <<END
54signup  ALL=(root) NOPASSWD: /usr/sbin/useradd
55signup  ALL=(root) NOPASSWD: /usr/sbin/groupadd
56signup  ALL=(root) NOPASSWD: /usr/sbin/setquota
57END
58chmod 0440 /etc/sudoers
59
60%preun
61touch /etc/sudoers.tmp
62chmod 600 /etc/sudoers.tmp
63grep -v "^signup" /etc/sudoers > /etc/sudoers.tmp
64mv /etc/sudoers.tmp /etc/sudoers
65
66%postun
67userdel signup
68
69%changelog
70
71* Sat Sep 30 2006  Jeff Arnold <jbarnold@MIT.EDU> 0.00
72- prerelease
Note: See TracBrowser for help on using the repository browser.