head 1.19;
access;
symbols
OPENPKG_E1_MP_HEAD:1.8
OPENPKG_E1_MP:1.8
OPENPKG_E1_MP_2_STABLE:1.6.2.2
OPENPKG_E1_FP:1.6.2.2
OPENPKG_2_STABLE_MP:1.6
OPENPKG_2_STABLE_20061018:1.6.2.2
OPENPKG_2_STABLE:1.6.0.2;
locks; strict;
comment @-- @;
1.19
date 2009.06.30.20.21.39; author rse; state Exp;
branches;
next 1.18;
commitid mW7f5wxeUG4f4VTt;
1.18
date 2009.04.18.13.17.24; author rse; state Exp;
branches;
next 1.17;
commitid 4pHXU27WTIGCZuKt;
1.17
date 2009.01.06.10.40.38; author rse; state Exp;
branches;
next 1.16;
commitid uiuzD2lsvBgXunxt;
1.16
date 2008.07.16.07.01.59; author rse; state Exp;
branches;
next 1.15;
commitid hYHPBE4eCgVHSZat;
1.15
date 2008.01.01.15.06.30; author rse; state Exp;
branches;
next 1.14;
commitid B8esaHJHoduuKILs;
1.14
date 2007.12.06.08.46.02; author cs; state Exp;
branches;
next 1.13;
commitid Dod5s6xZpEdPClIs;
1.13
date 2007.11.27.11.23.37; author cs; state Exp;
branches;
next 1.12;
commitid 8yB7NBi3AdWOMcHs;
1.12
date 2007.10.27.12.00.28; author cs; state Exp;
branches;
next 1.11;
commitid XKMxflRJ6S7CYdDs;
1.11
date 2007.09.05.06.20.38; author rse; state Exp;
branches;
next 1.10;
commitid bdTQr6x4u93hMvws;
1.10
date 2007.07.20.20.18.40; author thl; state Exp;
branches;
next 1.9;
commitid yCyWfcoNSNOaUxqs;
1.9
date 2007.03.15.07.46.03; author rse; state Exp;
branches;
next 1.8;
commitid N7eiIBil70mlQ9as;
1.8
date 2007.01.01.17.42.33; author rse; state Exp;
branches;
next 1.7;
commitid BicZD6VUl7GuqP0s;
1.7
date 2006.11.05.08.28.41; author rse; state Exp;
branches;
next 1.6;
commitid 9gvffuLvKnS3gsTr;
1.6
date 2006.10.13.17.35.13; author thl; state Exp;
branches
1.6.2.1;
next 1.5;
commitid q5GSxzsSDX29XxQr;
1.5
date 2006.08.25.19.20.12; author rse; state Exp;
branches;
next 1.4;
commitid Tvsj1UyQ8rQ89gKr;
1.4
date 2006.08.20.16.36.08; author rse; state Exp;
branches;
next 1.3;
commitid efpwdWjD0jgJqBJr;
1.3
date 2006.07.09.21.27.50; author thl; state Exp;
branches;
next 1.2;
commitid 32ADHxxSuqPvoeEr;
1.2
date 2006.01.01.13.23.38; author rse; state Exp;
branches;
next 1.1;
commitid otZG8yKMCw1JFTfr;
1.1
date 2005.12.31.16.21.17; author rse; state Exp;
branches;
next ;
commitid yp0El7OarivZNMfr;
1.6.2.1
date 2006.10.13.17.35.13; author rse; state dead;
branches;
next 1.6.2.2;
commitid iZxwRSmmWscPXUQr;
1.6.2.2
date 2006.10.16.14.57.33; author rse; state Exp;
branches;
next ;
commitid iZxwRSmmWscPXUQr;
desc
@@
1.19
log
@switch to the new SourceForge.net website functionality where we can find all files (again)
@
text
@##
## unfsd.spec -- OpenPKG RPM Package Specification
## Copyright (c) 2000-2009 OpenPKG Foundation e.V.
##
## Permission to use, copy, modify, and distribute this software for
## any purpose with or without fee is hereby granted, provided that
## the above copyright notice and this permission notice appear in all
## copies.
##
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
## SUCH DAMAGE.
##
# package information
Name: unfsd
Summary: User-Space NFSv3 Server
URL: http://unfs3.sourceforge.net/
Vendor: Pascal Schmidt
Packager: OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class: EVAL
Group: Filesystem
License: GPL
Version: 0.9.22
Release: 20090106
# package options
%option with_fsl yes
# list of sources
Source0: http://switch.dl.sourceforge.net/sourceforge/unfs3/unfs3-%{version}.tar.gz
Source1: rc.unfsd
Source2: fsl.unfsd
Source3: unfsd.exports
Patch0: unfsd.patch
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20060823, bison, flex
PreReq: OpenPKG, openpkg >= 20060823
%if "%{with_fsl}" == "yes"
BuildPreReq: fsl
PreReq: fsl
%endif
AutoReq: no
AutoReqProv: no
%description
UNFS3 is a user-space implementation of the NFSv3 server
specification. It provides a daemon for the MOUNT and NFS protocols,
which are used by NFS clients for accessing files on the server.
%track
prog unfsd = {
version = %{version}
url = http://sourceforge.net/projects/unfs3/files/
regex = unfs3-(__VER__)\.tar\.gz
}
%prep
%setup -q -n unfs3-%{version}
%patch -p0
%build
# configure program
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
CPPFLAGS="%{l_cppflags}" \
LDFLAGS="%{l_ldflags} %{l_fsl_ldflags}" \
LIBS="%{l_fsl_libs}" \
./configure \
--prefix=%{l_prefix} \
--mandir=%{l_prefix}/man \
--enable-cluster
# build program
%{l_make} %{l_mflags}
%install
# install program
rm -rf $RPM_BUILD_ROOT
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
# strip down installation
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
# install configuration file
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/etc/unfsd
%{l_shtool} install -c -m 644 %{l_value -s -a} \
%{SOURCE unfsd.exports} $RPM_BUILD_ROOT%{l_prefix}/etc/unfsd/
# install OSSP fsl configuration
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/etc/fsl
%{l_shtool} install -c -m 644 %{l_value -s -a} \
%{SOURCE fsl.unfsd} $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/
# install run-command script
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
%{l_shtool} install -c -m 755 %{l_value -s -a} \
%{SOURCE rc.unfsd} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
# create run-time directory
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/var/unfsd
# determine installation files
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
%{l_files_std} \
'%config %{l_prefix}/etc/fsl/*' \
'%config %{l_prefix}/etc/unfsd/*'
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT
%post
# after upgrade, restart service
[ $1 -eq 2 ] || exit 0
eval `%{l_rc} unfsd status 2>/dev/null`
[ ".$unfsd_active" = .yes ] && %{l_rc} unfsd restart
exit 0
%preun
# before erase, stop service and remove log files
[ $1 -eq 0 ] || exit 0
%{l_rc} unfsd stop 2>/dev/null
rm -f $RPM_INSTALL_PREFIX/var/unfsd/unfsd.log* >/dev/null 2>&1 || true
rm -f $RPM_INSTALL_PREFIX/var/unfsd/unfsd.pid >/dev/null 2>&1 || true
exit 0
@
1.18
log
@bump years in copyright messages
@
text
@d67 1
a67 1
url = http://prdownloads.sourceforge.net/unfs3/
@
1.17
log
@upgrading package: unfsd 0.9.21 -> 0.9.22
@
text
@d3 1
a3 1
## Copyright (c) 2000-2008 OpenPKG Foundation e.V.
@
1.16
log
@upgrading package: unfsd 0.9.20 -> 0.9.21
@
text
@d34 2
a35 2
Version: 0.9.21
Release: 20080716
@
1.15
log
@Update package specifications according to OpenPKG year 2008 world order:
http://www.mail-archive.com/openpkg-announce@@openpkg.org/msg00221.html
@
text
@d34 2
a35 2
Version: 0.9.20
Release: 20080101
@
1.14
log
@upgrading package: unfsd 0.9.19 -> 0.9.20
@
text
@d3 1
a3 2
## Copyright (c) 2000-2007 OpenPKG Foundation e.V.
## Copyright (c) 2000-2007 Ralf S. Engelschall
d35 1
a35 1
Release: 20071206
@
1.13
log
@upgrading package: unfsd 0.9.18 -> 0.9.19
@
text
@d35 2
a36 2
Version: 0.9.19
Release: 20071127
@
1.12
log
@Drop version information of OSSP fsl dependency since it doesn't make to much sense in an CURRENT-only world. Additionally, in several cases it has been choosen quite at will without being correct.
@
text
@d35 2
a36 2
Version: 0.9.18
Release: 20071027
d85 1
@
1.11
log
@upgrading package: unfsd 0.9.17 -> 0.9.18
@
text
@d36 1
a36 1
Release: 20070905
d54 2
a55 2
BuildPreReq: fsl >= 1.2.0
PreReq: fsl >= 1.2.0
@
1.10
log
@remove "%not %dir" construct, allowing proper directory ownership tracking and removal when erasing last provider
@
text
@d35 2
a36 2
Version: 0.9.17
Release: 20070720
@
1.9
log
@upgrading package: unfsd 0.9.16 -> 0.9.17
@
text
@d36 1
a36 1
Release: 20070315
a122 1
'%not %dir %{l_prefix}/etc/fsl' \
@
1.8
log
@Welcome Year 2007!
@
text
@d35 2
a36 2
Version: 0.9.16
Release: 20061105
@
1.7
log
@upgrading package: unfsd 0.9.15 -> 0.9.16
@
text
@d3 2
a4 2
## Copyright (c) 2000-2006 OpenPKG Foundation e.V.
## Copyright (c) 2000-2006 Ralf S. Engelschall
@
1.6
log
@new world order for "Packager" and "Distribution" headers
@
text
@d35 2
a36 2
Version: 0.9.15
Release: 20061013
@
1.6.2.1
log
@file unfsd.spec was added on branch OPENPKG_2_STABLE on 2006-10-16 14:57:33 +0000
@
text
@d1 146
@
1.6.2.2
log
@Mass merge from CURRENT to 2-STABLE (all packages except those of JUNK class)
@
text
@a0 146
##
## unfsd.spec -- OpenPKG RPM Package Specification
## Copyright (c) 2000-2006 OpenPKG Foundation e.V.
## Copyright (c) 2000-2006 Ralf S. Engelschall
##
## Permission to use, copy, modify, and distribute this software for
## any purpose with or without fee is hereby granted, provided that
## the above copyright notice and this permission notice appear in all
## copies.
##
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
## SUCH DAMAGE.
##
# package information
Name: unfsd
Summary: User-Space NFSv3 Server
URL: http://unfs3.sourceforge.net/
Vendor: Pascal Schmidt
Packager: OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class: EVAL
Group: Filesystem
License: GPL
Version: 0.9.15
Release: 2.20061018
# package options
%option with_fsl yes
# list of sources
Source0: http://switch.dl.sourceforge.net/sourceforge/unfs3/unfs3-%{version}.tar.gz
Source1: rc.unfsd
Source2: fsl.unfsd
Source3: unfsd.exports
Patch0: unfsd.patch
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 2.20061018, bison, flex
PreReq: OpenPKG, openpkg >= 2.20061018
%if "%{with_fsl}" == "yes"
BuildPreReq: fsl >= 1.2.0
PreReq: fsl >= 1.2.0
%endif
AutoReq: no
AutoReqProv: no
%description
UNFS3 is a user-space implementation of the NFSv3 server
specification. It provides a daemon for the MOUNT and NFS protocols,
which are used by NFS clients for accessing files on the server.
%track
prog unfsd = {
version = %{version}
url = http://prdownloads.sourceforge.net/unfs3/
regex = unfs3-(__VER__)\.tar\.gz
}
%prep
%setup -q -n unfs3-%{version}
%patch -p0
%build
# configure program
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
CPPFLAGS="%{l_cppflags}" \
LDFLAGS="%{l_ldflags} %{l_fsl_ldflags}" \
LIBS="%{l_fsl_libs}" \
./configure \
--prefix=%{l_prefix} \
--enable-cluster
# build program
%{l_make} %{l_mflags}
%install
# install program
rm -rf $RPM_BUILD_ROOT
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
# strip down installation
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
# install configuration file
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/etc/unfsd
%{l_shtool} install -c -m 644 %{l_value -s -a} \
%{SOURCE unfsd.exports} $RPM_BUILD_ROOT%{l_prefix}/etc/unfsd/
# install OSSP fsl configuration
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/etc/fsl
%{l_shtool} install -c -m 644 %{l_value -s -a} \
%{SOURCE fsl.unfsd} $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/
# install run-command script
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
%{l_shtool} install -c -m 755 %{l_value -s -a} \
%{SOURCE rc.unfsd} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
# create run-time directory
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/var/unfsd
# determine installation files
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
%{l_files_std} \
'%not %dir %{l_prefix}/etc/fsl' \
'%config %{l_prefix}/etc/fsl/*' \
'%config %{l_prefix}/etc/unfsd/*'
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT
%post
# after upgrade, restart service
[ $1 -eq 2 ] || exit 0
eval `%{l_rc} unfsd status 2>/dev/null`
[ ".$unfsd_active" = .yes ] && %{l_rc} unfsd restart
exit 0
%preun
# before erase, stop service and remove log files
[ $1 -eq 0 ] || exit 0
%{l_rc} unfsd stop 2>/dev/null
rm -f $RPM_INSTALL_PREFIX/var/unfsd/unfsd.log* >/dev/null 2>&1 || true
rm -f $RPM_INSTALL_PREFIX/var/unfsd/unfsd.pid >/dev/null 2>&1 || true
exit 0
@
1.5
log
@replace '@@l_prefix@@/lib/openpkg/bash @@l_prefix@@/etc/rc' in shebang with '@@l_prefix@@/bin/openpkg rc' to allow people who run the rc.xxx scripts directly (as executables) to leverage from the Set-UID functionality
@
text
@d30 2
a31 2
Packager: OpenPKG
Distribution: OpenPKG
d36 1
a36 1
Release: 20060825
@
1.4
log
@upgrading package: unfsd 0.9.14 -> 0.9.15
@
text
@d36 1
a36 1
Release: 20060820
d51 2
a52 2
BuildPreReq: OpenPKG, openpkg >= 20040130, bison, flex
PreReq: OpenPKG, openpkg >= 20040130
@
1.3
log
@upgrading package: unfsd 0.9.13 -> 0.9.14
@
text
@d27 1
a27 1
Summary: User-space NFSv3 Server
d35 2
a36 2
Version: 0.9.14
Release: 20060709
@
1.2
log
@adjust copyrights for new year 2006
@
text
@d35 2
a36 2
Version: 0.9.13
Release: 20051231
@
1.1
log
@new package: unfsd 0.9.13 (User-space NFSv3 Server)
@
text
@d3 2
a4 2
## Copyright (c) 2000-2005 OpenPKG Foundation e.V.
## Copyright (c) 2000-2005 Ralf S. Engelschall
@