From: hjl Date: Mon, 6 Dec 1999 17:44:34 +0000 (+0000) Subject: 1. Added nfs-utils.spec.in. X-Git-Tag: nfs-utils-0-1-4^0 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=0d9401717fbe56ac58600fa38786a930b325d732 1. Added nfs-utils.spec.in. 2. Updated for 0.1.4. --- diff --git a/ChangeLog b/ChangeLog index 82e2f3f..0291fb7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,19 @@ +Mon Dec 6 09:42:45 1999 H.J. Lu + + * configure.in (VERSION): Set to "0.1.4". + * configure: Regenerated. + * nfs-utils.spec: Updated. + + * README: Updated. + +Mon Dec 6 09:28:07 1999 H.J. Lu + + * nfs-utils.spec.in: New file. + + * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@". + + * configure.in (nfs-utils.spec): Added to AC_OUTPUT. + 1999-12-04 Chip Salzenberg * config.mk.in: Use $(CC) as set by configure. diff --git a/README b/README index 9dac65e..6c460b4 100644 --- a/README +++ b/README @@ -1,4 +1,4 @@ -This is the Linux NFS utility package version 0.1.3. It is based on +This is the Linux NFS utility package version 0.1.4. It is based on knfsd 1.4.7. WARNING: The NFS servers in Linux 2.2 to 2.2.13 are not compatible with @@ -65,8 +65,8 @@ will get the latest version. The files are -ftp://ftp.linuxnfs.sourceforge.org/pub/nfs/nfs-utils-0.1.3.tar.gz -ftp://ftp.linuxnfs.sourceforge.org/pub/nfs/nfs-utils-0.1.2-0.1.3.diff.gz +ftp://ftp.linuxnfs.sourceforge.org/pub/nfs/nfs-utils-0.1.4.tar.gz +ftp://ftp.linuxnfs.sourceforge.org/pub/nfs/nfs-utils-0.1.3-0.1.4.diff.gz To compile, just do @@ -81,7 +81,7 @@ They are tested on RedHat 6.1. On RedHat 6.1, you can use -# rpm -ta nfs-utils-0.1.3.tar.gz +# rpm -ta nfs-utils-0.1.4.tar.gz to build the source and binary RPMs. @@ -95,4 +95,4 @@ Thanks. H.J. hjl@lucon.org -11/29/99 +12/06/99 diff --git a/config.mk.in b/config.mk.in index 76ade01..7b56aab 100644 --- a/config.mk.in +++ b/config.mk.in @@ -2,7 +2,7 @@ # Configuration stuff for nfs-utils # -VERSION = @VERSION@ +VERSION = nfs-utils @VERSION@ prefix = $(install_prefix)@prefix@ exec_prefix = $(install_prefix)@prefix@ diff --git a/configure b/configure index d0c6f0c..7048150 100755 --- a/configure +++ b/configure @@ -544,7 +544,7 @@ fi # The nfs-utils version -VERSION="nfs-utils 0.1.3" +VERSION="0.1.4" # Check whether --with-statedir or --without-statedir was given. @@ -1593,7 +1593,7 @@ done ac_given_srcdir=$srcdir ac_given_INSTALL="$INSTALL" -trap 'rm -fr `echo "config.mk support/include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 +trap 'rm -fr `echo "config.mk nfs-utils.spec support/include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then diff --git a/configure.in b/configure.in index 231c233..5acc986 100644 --- a/configure.in +++ b/configure.in @@ -4,7 +4,7 @@ AC_INIT(rules.mk) AC_PREFIX_DEFAULT(/usr) # The nfs-utils version -VERSION="nfs-utils 0.1.3" +VERSION="0.1.4" AC_SUBST(VERSION) dnl ************************************************************* @@ -82,4 +82,4 @@ AC_DEFINE_UNQUOTED(NFS_STATEDIR, "$statedir") AC_SUBST(LDFLAGS) AC_SUBST(CXXFLAGS) AC_SUBST(CFLAGS) -AC_OUTPUT(config.mk) +AC_OUTPUT(config.mk nfs-utils.spec) diff --git a/nfs-utils.spec b/nfs-utils.spec index 6ba9dd0..6526270 100644 --- a/nfs-utils.spec +++ b/nfs-utils.spec @@ -1,6 +1,6 @@ Summary: The utilities for Linux NFS client and server. Name: nfs-utils -Version: 0.1.3 +Version: 0.1.4 Release: 1 Source0: ftp://ftp.valinux.com/pub/support/hjl/nfs/%{name}-%{version}.tar.gz Group: System Environment/Daemons diff --git a/nfs-utils.spec.in b/nfs-utils.spec.in new file mode 100644 index 0000000..81130fd --- /dev/null +++ b/nfs-utils.spec.in @@ -0,0 +1,80 @@ +Summary: The utilities for Linux NFS client and server. +Name: nfs-utils +Version: @VERSION@ +Release: 1 +Source0: ftp://ftp.valinux.com/pub/support/hjl/nfs/%{name}-%{version}.tar.gz +Group: System Environment/Daemons +Obsoletes: nfs-server nfs-server-clients knfsd knfsd-clients knfsd-lock +Provides: nfs-server nfs-server-clients knfsd knfsd-clients knfsd-lock +Copyright: GPL +ExcludeArch: armv4l +Buildroot: /var/tmp/%{name}-root +Serial: 1 +Requires: kernel >= 2.2.5, portmap >= 4.0 + +%description +The nfs-utils package provides the utilities for Linux NFS client and +server. + +%prep +%setup -q + +%build +./configure +make all + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT{/sbin,/usr/{sbin,man/man5,man/man8}} +mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d +mkdir -p $RPM_BUILD_ROOT/dev + +make install install_prefix=$RPM_BUILD_ROOT +install -s -m 755 tools/rpcdebug/rpcdebug $RPM_BUILD_ROOT/sbin +install -m 755 etc/redhat/nfsd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/nfs +install -m 755 etc/redhat/nfslock.init $RPM_BUILD_ROOT/etc/rc.d/init.d/nfslock + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +/sbin/chkconfig --add nfs +/sbin/chkconfig --add nfslock + +%preun +if [ "$1" = "0" ]; then + /sbin/chkconfig --del nfs + /sbin/chkconfig --del nfslock +fi + +%files +%defattr(-,root,root) +/sbin/rpcdebug +/usr/sbin/exportfs +/usr/sbin/nfsstat +/usr/sbin/nhfsstone +/usr/sbin/rpc.lockd +/usr/sbin/rpc.mountd +/usr/sbin/rpc.nfsd +/usr/sbin/rpc.rquotad +/usr/sbin/rpc.statd +/usr/sbin/showmount +/usr/man/man5/exports.5 +/usr/man/man8/exportfs.8 +/usr/man/man8/mountd.8 +/usr/man/man8/nfsd.8 +/usr/man/man8/nfsstat.8 +/usr/man/man8/rpc.mountd.8 +/usr/man/man8/rpc.nfsd.8 +/usr/man/man8/rpc.statd.8 +/usr/man/man8/rpc.rquotad.8 +/usr/man/man8/rquotad.8 +/usr/man/man8/showmount.8 +/usr/man/man8/statd.8 +%config /etc/rc.d/init.d/nfs +%config /etc/rc.d/init.d/nfslock +%dir /var/lib/nfs +%config(noreplace) /var/lib/nfs/xtab +%config(noreplace) /var/lib/nfs/etab +%config(noreplace) /var/lib/nfs/rmtab +%doc README