rpms/zfs-fuse/devel import.log, NONE, 1.1 zfs-fuse.init, NONE, 1.1 zfs-fuse.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Uwe Kubosch donv at fedoraproject.org
Mon Nov 10 23:19:00 UTC 2008


Author: donv

Update of /cvs/pkgs/rpms/zfs-fuse/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv25236/devel

Modified Files:
	.cvsignore sources 
Added Files:
	import.log zfs-fuse.init zfs-fuse.spec 
Log Message:
Imported into CVS



--- NEW FILE import.log ---
zfs-fuse-0_5_0-2_20081009_fc9:HEAD:zfs-fuse-0.5.0-2.20081009.fc9.src.rpm:1226359036


--- NEW FILE zfs-fuse.init ---
#! /bin/bash
#
# zfs-fuse - startup script for zfs-fuse daemon
#
# chkconfig:   - 26 74
# description: zfs-fuse daemon
#
### BEGIN INIT INFO
# Provides:           zfs-fuse
# Required-Start:     fuse
# Required-Stop:  
# Should-Start: 
# Should-Stop: 
# Default-Start:  
# Default-Stop: 
# Short-Description:  Start the zfs-fuse daemon
# Description:        zfs-fuse daemon
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/usr/bin/zfs-fuse"
prog="zfs-fuse"
#config="<path to major config file>"

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    echo -n $"Starting $prog: "
    daemon $exec
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start 
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?


--- NEW FILE zfs-fuse.spec ---
Summary:          ZFS ported to Linux FUSE
Name:             zfs-fuse
Version:          0.5.0
Release:          2.20081009%{?dist}
Group:            System Environment/Base
License:          CDDL
URL:              http://www.wizy.org/wiki/ZFS_on_FUSE
# The source for this package was pulled from upstream's vcs.  Use the
# following command to generate the tarball:
#   wget http://www.wizy.org/mercurial/zfs-fuse/trunk/archive/4c14f29ce44c.tar.bz2
#   mv 4c14f29ce44c.tar.bz2 zfs-fuse-0.5.0.tar.bz2
# The setup line below has been changed to reflect that the top directory of the
# archive has a different name than the archive itself.
Source0:          %{name}/%{name}-%{version}.tar.bz2
Source01:         zfs-fuse.init
BuildRequires:    fuse-devel libaio-devel scons zlib-devel
Requires:         fuse >= 2.7.4-1
Requires(post):   chkconfig
Requires(preun):  chkconfig initscripts
Requires(postun): initscripts
# (2008-10-30)(uwe at kubosch.no) zfs-fuse doesn't have PPC and PPC64 implementations for atomic instructions
ExcludeArch:      ppc64
ExcludeArch:      ppc
BuildRoot:        %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%description
ZFS is an advanced modern general-purpose filesystem from Sun
Microsystems, originally designed for Solaris/OpenSolaris.

This project is a port of ZFS to the FUSE framework for the Linux
operating system.

%prep
%setup -q -n trunk-4c14f29ce44c
f=LICENSE
%{__mv} $f $f.iso88591
iconv -o $f -f iso88591 -t utf8 $f.iso88591
%{__rm} -f $f.iso88591

%build
pushd src
%{__sed} -i -e 's/-pipe -Wall -Werror/%{optflags}/' SConstruct
scons

%install
%{__rm} -rf %{buildroot}
pushd src
scons install install_dir=%{buildroot}%{_bindir}
%{__install} -Dp -m 0755 %{SOURCE1} %{buildroot}%{_initrddir}/%{name}

%clean
%{__rm} -rf %{buildroot}

%post
if [ $1 = 1 ] ; then
    /sbin/chkconfig --add %{name}
fi

%preun
if [ $1 = 0 ] ; then
    /sbin/service %{name} stop >/dev/null 2>&1 || :
    /sbin/chkconfig --del %{name}
fi

%postun
if [ $1 -ge 1 ] ; then
    /sbin/service %{name} condrestart >/dev/null 2>&1 || :
fi

%files
%defattr(-, root, root, -)
%doc BUGS CHANGES contrib HACKING LICENSE README 
%doc README.NFS STATUS TESTING TODO
%{_bindir}/zdb
%{_bindir}/zfs
%{_bindir}/zfs-fuse
%{_bindir}/zpool
%{_bindir}/ztest
%{_initrddir}/%{name}

%changelog
* Thu Oct 09 2008 Uwe Kubosh <uwe at kubosch.no> - 0.5.0-2.20081009
- Updated to upstream trunk of 2008-10-09
- Adds changes to make zfs-fuse build out-of-the-box on Fedora 9, and removes the need for patches.

* Sat Oct  4 2008 Terje Rosten <terje.rosten at ntnu.no> - 0.5.0-1 
- initial build


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/zfs-fuse/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	10 Nov 2008 16:39:21 -0000	1.1
+++ .cvsignore	10 Nov 2008 23:18:29 -0000	1.2
@@ -0,0 +1 @@
+zfs-fuse-0.5.0.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/zfs-fuse/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	10 Nov 2008 16:39:22 -0000	1.1
+++ sources	10 Nov 2008 23:18:29 -0000	1.2
@@ -0,0 +1 @@
+cbf1c40c6136e061062bca54ccba30c4  zfs-fuse-0.5.0.tar.bz2




More information about the fedora-extras-commits mailing list