]> git.pld-linux.org Git - packages/am-utils.git/blame - am-utils.spec
- new {un}registering procedure for info pages with using
[packages/am-utils.git] / am-utils.spec
CommitLineData
a8697a92
JR
1Summary: Automount utilities including an updated version of Amd.
2Name: am-utils
3Version: 6.0
4Serial: 1
5Release: 3
6Copyright: BSD
7Group: System Environment/Daemons
8Source: ftp://shekel.mcl.cs.columbia.edu/pub/am-utils/am-utils-%{version}.tar.gz
9Source1: am-utils.init
10Source2: am-utils.conf
11Source3: am-utils.sysconf
12Patch0: am-utils-6.0a16-linux.patch
13Patch1: am-utils-6.0a16-alpha.patch
14Patch2: am-utils-6.0a16-glibc21.patch
a8697a92
JR
15Requires: portmap
16BuildRoot: /var/tmp/am-utils-root
17Prereq: /sbin/chkconfig
8fb9654d 18Prereq: /usr/sbin/fix-info-dir
a8697a92
JR
19Obsoletes: amd
20
21%description
22Am-utils includes an updated version of Amd, the popular BSD
23automounter. An automounter is a program which maintains a cache of
24mounted filesystems. Filesystems are mounted when they are first
25referenced by the user and unmounted after a certain period of inactivity.
26Amd supports a variety of filesystems, including NFS, UFS, CD-ROMS and
27local drives.
28
29You should install am-utils if you need a program for automatically
30mounting and unmounting filesystems.
31
32%prep
33%setup -q
34%patch2 -p1 -b .glibc21
35%patch0 -p1 -b .lnx
36%ifnarch i386
37%patch1 -p1 -b .noauto
38%endif
39
40%build
41cd aux ; autoconf ; mv -f configure .. ; cd ..
42CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr \
43 --enable-shared --sysconfdir=/etc --enable-libs=-lnsl
44# fun with autoconf
45touch `find -name Makefile.in`
46make
47
48%install
49rm -rf $RPM_BUILD_ROOT
50make install prefix=$RPM_BUILD_ROOT/usr sysconfdir=`pwd`/etc
51mkdir -p $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d}
52install -m 600 $RPM_SOURCE_DIR/am-utils.conf $RPM_BUILD_ROOT/etc/amd.conf
53install -m 755 $RPM_SOURCE_DIR/am-utils.sysconf $RPM_BUILD_ROOT/etc/sysconfig/amd
54install -m 755 $RPM_SOURCE_DIR/am-utils.init $RPM_BUILD_ROOT/etc/rc.d/init.d/amd
55strip $RPM_BUILD_ROOT/usr/sbin/* $RPM_BUILD_ROOT/usr/bin/* || :
56gzip -q9f $RPM_BUILD_ROOT/usr/info/*info*
57mkdir -p $RPM_BUILD_ROOT/.automount
58# get rid of some lame scripts
59file $RPM_BUILD_ROOT/usr/sbin/* | \
60 grep -v ELF | grep -v am-eject | \
61 cut -f 1 -d':' | xargs rm -f
62
63%clean
64rm -rf $RPM_BUILD_ROOT
65
66%post
67/sbin/ldconfig
68/sbin/chkconfig --add amd
8fb9654d 69/usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
a8697a92
JR
70
71%preun
8fb9654d 72/usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
a8697a92
JR
73
74%postun
75/sbin/ldconfig
76if [ $1 = 0 ]; then
77 /sbin/chkconfig --del amd
78fi
79
80%files
81%defattr(-,root,root)
82%doc doc/*.ps AUTHORS BUGS ChangeLog NEWS README* TODO
83%dir /.automount
84/usr/bin/pawd
85/usr/sbin/*
86/usr/man/man[58]/*
87/usr/man/man1/pawd.1
88%config /etc/amd.conf
89%config /etc/sysconfig/amd
90%config /etc/rc.d/init.d/amd
91/usr/info/*info*.gz
92/usr/lib/libamu.so
93/usr/lib/libamu.so.*
This page took 0.441388 seconds and 4 git commands to generate.