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

Last change on this file since 120 was 120, checked in by jbarnold, 17 years ago
updated all spec files to use numeric "Release:"
File size: 1.7 KB
RevLine 
[1]1Summary: scripts.mit.edu locker administration system
2Group: Applications/System
[67]3Name: accountadm
[1]4Version: 0.00
[120]5Release: 0
[1]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}
[36]12Prereq: /usr/bin/fs, /usr/bin/pts
[1]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
[36]27./configure --with-fs=/usr/bin/fs --with-pts=/usr/bin/pts
[1]28make
29
30%install
31[ $RPM_BUILD_ROOT != / ] && rm -rf $RPM_BUILD_ROOT
[89]32make install DESTDIR=$RPM_BUILD_ROOT prefix=/usr/local
[1]33
34%clean
35[ $RPM_BUILD_ROOT != / ] && rm -rf $RPM_BUILD_ROOT
36
37%files
38%defattr(0644, root, root)
[11]39/usr/local/etc/modbashrc
[1]40%defattr(0755, root, root)
[11]41/usr/local/bin/modbash
[1]42/usr/local/sbin/admof
43/usr/local/sbin/signup-scripts-backend
44%defattr(4755, signup, signup)
45/usr/local/sbin/signup-scripts-frontend
46
47%pre
48groupadd signup
49useradd -g signup signup
50
51%post
52cat >>/etc/sudoers <<END
53signup  ALL=(root) NOPASSWD: /usr/sbin/useradd
54signup  ALL=(root) NOPASSWD: /usr/sbin/groupadd
[11]55signup  ALL=(root) NOPASSWD: /usr/sbin/setquota
[1]56END
[11]57chmod 0440 /etc/sudoers
[1]58
59%preun
60touch /etc/sudoers.tmp
61chmod 600 /etc/sudoers.tmp
62grep -v "^signup" /etc/sudoers > /etc/sudoers.tmp
63mv /etc/sudoers.tmp /etc/sudoers
64
65%postun
66userdel -r signup
67
68%changelog
69
70* Sat Sep 30 2006  Jeff Arnold <jbarnold@MIT.EDU> 0.00
71- prerelease
Note: See TracBrowser for help on using the repository browser.