almost raw
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 19 Aug 1999 20:07:25 +0000 (20:07 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    am-utils.spec -> 1.1

am-utils.spec [new file with mode: 0644]

diff --git a/am-utils.spec b/am-utils.spec
new file mode 100644 (file)
index 0000000..f5016a1
--- /dev/null
@@ -0,0 +1,95 @@
+Summary: Automount utilities including an updated version of Amd.
+Name: am-utils
+Version: 6.0
+Serial: 1
+Release: 3
+Copyright: BSD
+Group: System Environment/Daemons
+Source: ftp://shekel.mcl.cs.columbia.edu/pub/am-utils/am-utils-%{version}.tar.gz
+Source1: am-utils.init
+Source2: am-utils.conf
+Source3: am-utils.sysconf
+Patch0: am-utils-6.0a16-linux.patch
+Patch1: am-utils-6.0a16-alpha.patch
+Patch2: am-utils-6.0a16-glibc21.patch
+Prereq: /sbin/install-info
+Requires: portmap
+BuildRoot: /var/tmp/am-utils-root
+Prereq: /sbin/chkconfig
+Obsoletes: amd
+
+%description
+Am-utils includes an updated version of Amd, the popular BSD
+automounter.  An automounter is a program which maintains a cache of
+mounted filesystems.  Filesystems are mounted when they are first
+referenced by the user and unmounted after a certain period of inactivity.
+Amd supports a variety of filesystems, including NFS, UFS, CD-ROMS and
+local drives.  
+
+You should install am-utils if you need a program for automatically
+mounting and unmounting filesystems.
+
+%prep
+%setup -q
+%patch2 -p1 -b .glibc21
+%patch0 -p1 -b .lnx
+%ifnarch i386
+%patch1 -p1 -b .noauto
+%endif
+
+%build
+cd aux ; autoconf ; mv -f configure .. ; cd ..
+CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr \
+       --enable-shared --sysconfdir=/etc --enable-libs=-lnsl
+# fun with autoconf
+touch `find -name Makefile.in`
+make
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install prefix=$RPM_BUILD_ROOT/usr sysconfdir=`pwd`/etc
+mkdir -p $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d}
+install -m 600 $RPM_SOURCE_DIR/am-utils.conf $RPM_BUILD_ROOT/etc/amd.conf
+install -m 755 $RPM_SOURCE_DIR/am-utils.sysconf $RPM_BUILD_ROOT/etc/sysconfig/amd
+install -m 755 $RPM_SOURCE_DIR/am-utils.init $RPM_BUILD_ROOT/etc/rc.d/init.d/amd
+strip $RPM_BUILD_ROOT/usr/sbin/* $RPM_BUILD_ROOT/usr/bin/* || :
+gzip -q9f $RPM_BUILD_ROOT/usr/info/*info*
+mkdir -p $RPM_BUILD_ROOT/.automount
+# get rid of some lame scripts
+file $RPM_BUILD_ROOT/usr/sbin/* | \
+       grep -v ELF | grep -v am-eject | \
+       cut -f 1 -d':' | xargs rm -f
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+/sbin/ldconfig
+/sbin/chkconfig --add amd
+/sbin/install-info /usr/info/am-utils.info.gz /usr/info/dir
+
+%preun
+if [ $1 = 0 ]; then
+   /sbin/install-info --delete /usr/info/am-utils.info.gz /usr/info/dir
+fi
+
+%postun
+/sbin/ldconfig
+if [ $1 = 0 ]; then
+    /sbin/chkconfig --del amd
+fi
+
+%files
+%defattr(-,root,root)
+%doc doc/*.ps AUTHORS BUGS ChangeLog NEWS README* TODO
+%dir /.automount
+/usr/bin/pawd
+/usr/sbin/*
+/usr/man/man[58]/*
+/usr/man/man1/pawd.1
+%config /etc/amd.conf
+%config /etc/sysconfig/amd
+%config /etc/rc.d/init.d/amd
+/usr/info/*info*.gz
+/usr/lib/libamu.so
+/usr/lib/libamu.so.*
This page took 0.047999 seconds and 4 git commands to generate.