rpms/chunkd/devel chunkd.init, NONE, 1.1 chunkd.spec, NONE, 1.1 chunkd.sysconf, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Jeff Garzik jgarzik at fedoraproject.org
Tue Jul 21 15:45:50 UTC 2009


Author: jgarzik

Update of /cvs/pkgs/rpms/chunkd/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv13813/devel

Modified Files:
	.cvsignore sources 
Added Files:
	chunkd.init chunkd.spec chunkd.sysconf import.log 
Log Message:
initial revision



--- NEW FILE chunkd.init ---
#!/bin/sh
#
# chunkd Starts/stop the data storage daemon
#
# chkconfig:   - 96 5
# description: A data storage service

### BEGIN INIT INFO
# Provides: chunkd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: A data storage service
# Description:      Data storage service
### END INIT INFO

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

exec=/usr/sbin/chunkd
prog="chunkd"
config=/etc/sysconfig/chunkd

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

lockfile=/var/lock/subsys/$prog

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

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    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 chunkd.spec ---
Name:		chunkd
Version:	0.4
Release:	0.2.ge073b822%{?dist}
Summary:	Data storage daemon

Group:		System Environment/Base
License:	GPLv2
URL:		http://hail.wiki.kernel.org/

# pulled from upstream git, commit e073b82297fc3c88f94f524c82e9e6e86fb2cd0a
# to recreate tarball, check out commit, then run "make dist"
Source0:	chunkd-%{version}git.tar.gz
Source2:	chunkd.init
Source3:	chunkd.sysconf
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

# N.B. We need cld to build, because our "make check" spawns a private copy.
BuildRequires:	libevent-devel glib2-devel openssl-devel zlib-devel
BuildRequires:	libxml2-devel procps cld cld-devel

# cld is broken on big-endian... embarrassing!!!
# FIXME: remove this when cld is fixed
ExcludeArch: ppc ppc64

%description
Single-node data storage daemon for cloud computing.

This TCP network service is a very simple PUT/GET/DELETE data storage
service.  It is intended to be used as a low-level piece of large-scale
distributed data storage infrastructure.  The service provides
operations on stored data ("objects").

%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig

%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%prep
%setup -q -n %{name}-%{version}git


%build
%configure --disable-static
make %{?_smp_mflags}


%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}

mkdir -p %{buildroot}%{_initddir}
install -m 755 %{SOURCE2} %{buildroot}%{_initddir}/chunkd

mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/chunkd

find %{buildroot} -name '*.la' -exec rm -f {} ';'

%check
make check

%clean
rm -rf %{buildroot}

%post
/sbin/ldconfig
# must be in chkconfig on
/sbin/chkconfig --add chunkd

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

%postun
/sbin/ldconfig
if [ "$1" -ge "1" ]; then
	/sbin/service chunkd condrestart >/dev/null 2>&1 ||:
fi

%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING LICENSE README NEWS doc/*.txt
%{_sbindir}/chunkd
%{_libdir}/*.so.*
%attr(0755,root,root)	%{_initddir}/chunkd
%config(noreplace)	%{_sysconfdir}/sysconfig/chunkd

%files devel
%defattr(-,root,root,-)
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*
%{_includedir}/*

%changelog
* Sun Jul 19 2009 Jeff Garzik <jgarzik at redhat.com> - 0.4-0.2.ge073b822
- update source to commit e073b82297fc3c88f94f524c82e9e6e86fb2cd0a
- improve pkg description
- per pkg guidelines, describe how to regen source tarball from git
- add doc LICENSE

* Fri Jul 17 2009 Jeff Garzik <jgarzik at redhat.com> - 0.4-0.1.g6f54181c
- kill RPM_BUILD_ROOT
- new release version scheme

* Thu Jul 16 2009 Jeff Garzik <jgarzik at redhat.com> - 0.3-4%{?dist}
- chkconfig default off
- add doc: COPYING
- config(noreplace) sysconfig/chunkd

* Thu Jul 16 2009 Jeff Garzik <jgarzik at redhat.com> - 0.3-3%{?dist}
- minor spec updates for review feedback, Fedora packaging guidelines

* Thu Jul 16 2009 Jeff Garzik <jgarzik at redhat.com> - 0.3-2%{?dist}
- updated BuildRequires
- rpmlint fixes
- updated to latest git repo

* Fri May 15 2009 Jeff Garzik <jgarzik at redhat.com> - 0.3-1%{?dist}
- Version 0.3

* Fri May 15 2009 Jeff Garzik <jgarzik at redhat.com> - 0.2-1%{?dist}
- Version 0.2

* Wed Mar 18 2009 Jeff Garzik <jgarzik at redhat.com> - 0.2git-2%{?dist}
- package and ship libchunkdc

* Wed Mar 18 2009 Jeff Garzik <jgarzik at redhat.com> - 0.2git-1%{?dist}
- initial release



--- NEW FILE chunkd.sysconf ---
# specify additional command line arguments for chunkd
#

#example:
#OPTS="--debug"



--- NEW FILE import.log ---
chunkd-0_4-0_2_ge073b822_fc10:HEAD:chunkd-0.4-0.2.ge073b822.fc10.src.rpm:1248191086


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/chunkd/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	21 Jul 2009 15:22:22 -0000	1.1
+++ .cvsignore	21 Jul 2009 15:45:20 -0000	1.2
@@ -0,0 +1 @@
+chunkd-0.4git.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/chunkd/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	21 Jul 2009 15:22:22 -0000	1.1
+++ sources	21 Jul 2009 15:45:20 -0000	1.2
@@ -0,0 +1 @@
+26655e13339e3b4bcb8903520134c40c  chunkd-0.4git.tar.gz




More information about the fedora-extras-commits mailing list