"Fossies" - the Fresh Open Source Software Archive

Member "coda-6.9.5/tools/coda.spec.in" (17 Dec 2007, 7542 Bytes) of package /linux/misc/old/coda-6.9.5.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 %define opt_with() %{expand:%%global with_%{1} %%{?_with_%{1}:1}%%{?!_with_%{1}:0}}
    2 %define initdir %(if test -d /etc/rc.d/init.d ; then echo /etc/rc.d/init.d ; else echo /etc/init.d ; fi)
    3 
    4 %opt_with vcodacon
    5 
    6 Summary: Coda distributed file system
    7 Name: @PACKAGE@
    8 Version: @VERSION@
    9 Release: 1
   10 Source: ftp://ftp.coda.cs.cmu.edu/pub/coda/src/%{name}-%{version}.tar.gz
   11 License: GPL
   12 BuildRoot: %{_builddir}/%{name}-%{version}/Root
   13 BuildRequires: lwp-devel >= 2.3, rpc2-devel, rvm-devel
   14 BuildRequires: ncurses-devel, libtermcap-devel
   15 %if %{with_vcodacon}
   16 BuildRequires: fltk-fluid, fltk-devel
   17 %endif
   18 Group: Networking/Daemons
   19 %description
   20 Source package for the Coda file system.  Three packages are provided by
   21 this rpm: the client and server and the backup components. Separately
   22 you must install a kernel module, or have a Coda enabled kernel, and
   23 you should get the Coda documentation package.
   24 
   25 %package client
   26 Summary: Coda client
   27 Group: Networking/Daemons
   28 %description client
   29 This package contains the main client program, the cachemanager Venus.
   30 Also included are the binaries for the cfs, utilities for logging, ACL
   31 manipulation etc, the hoarding tools for use with laptops and repair
   32 tools for fixing conflicts. Finally there is the cmon and codacon
   33 console utilities to monitor Coda's activities. You need a Coda
   34 kernel-module for your kernel version, or Coda in your kernel, to have
   35 a complete coda client.
   36 
   37 %package server
   38 Summary: Coda server
   39 Group: Networking/Daemons
   40 Requires: rvm-tools
   41 %description server
   42 This package contains the fileserver for the Coda file system, as well
   43 as the volume utilities.
   44 
   45 %package backup
   46 Summary: Coda backup coordinator
   47 Group: Networking/Daemons
   48 %description backup
   49 This package contains the backup software for the Coda file system, as
   50 well as the volume utilities.
   51 
   52 %if %{with_vcodacon}
   53 %package vcodacon
   54 Summary: Coda graphical console
   55 Group: Networking/Daemons
   56 Requires: coda-client
   57 %description vcodacon
   58 This package contains vcodacon, a graphical console for the Coda file
   59 system client.
   60 %endif
   61 
   62 %changelog
   63 * Sun Jan 19 2003 Rafael Jesus Alcantara Perez <rafa@dedalo.ws>
   64 - Initial attempt for making the RPM packages from CVS with KERBEROS support.
   65 * Sun Jun 21 1998 Peter Braam <braam@cs.cmu.edu>
   66 - get rid of the kernel package. This needs interaction during the build.
   67 - no more separate libc, glibc packages
   68 * Tue Dec 30 1997 Peter Braam <braam@cs.cmu.edu>
   69 - several changes: documentation separate
   70 - use variables: (at)KVER(at)=`uname -r`, (at)CVER(at)=coda version
   71 * Mon Jun 02 1997 Peter Braam <braam@cs.cmu.edu>
   72 - small changes to Elliots improvements.
   73 - some of his ideas are now in the scripts
   74 * Wed May 28 1997 Elliot Lee <sopwith@redhat.com>
   75 - Based upon 4.0.3-1 spec file.
   76 - Changed to BuildRoot
   77 - Do as much as possible at build time instead of in %post
   78 - Added initscript for venus
   79 
   80 %prep
   81 %setup -n %{name}-%{version}
   82 
   83 %build
   84 options=""
   85 %if %{with_vcodacon}
   86 options="$options --with-vcodacon"
   87 %endif
   88 
   89 ./configure --prefix=/usr '--mandir=${prefix}/share/man' $options
   90 #  --with-krb4 \
   91 #  --with-krb4-includes=/usr/kerberos/include/kerberosIV \
   92 #  --with-krb4-libraries=/usr/kerberos/lib \
   93 #  --with-krb5 \
   94 #  --with-krb5-includes=/usr/kerberos/include \
   95 #  --with-krb5-libraries=/usr/kerberos/lib
   96 make
   97 
   98 %install
   99 rm -rf $RPM_BUILD_ROOT
  100 mkdir -p $RPM_BUILD_ROOT
  101 make prefix=$RPM_BUILD_ROOT/usr install
  102 
  103 mkdir -p $RPM_BUILD_ROOT/coda
  104 mkdir -p $RPM_BUILD_ROOT/usr/coda/etc
  105 mkdir -p $RPM_BUILD_ROOT/usr/coda/venus.cache
  106 touch $RPM_BUILD_ROOT/coda/NOT_REALLY_CODA
  107 
  108 %clean
  109 rm -rf $RPM_BUILD_ROOT
  110 
  111 %pre client
  112 grep "^coda" /proc/mounts > /dev/null 2>&1
  113 if [ $? = 0 ]; then
  114 	echo "*** Coda is mounted: cannot install ***"
  115 	exit 1
  116 else
  117 	exit 0
  118 fi
  119 
  120 %post client
  121 if [ -e /usr/coda/venus.cache/pid ]; then
  122     rm -f /usr/coda/venus.cache/pid
  123 fi
  124 if [ ! -e /etc/coda/venus.conf ]; then
  125 	/usr/sbin/venus-setup "" 100000
  126 fi
  127 #if [ ! -e /dev/cfs0 ]; then
  128 #	/bin/mknod /dev/cfs0 c 67 0
  129 #fi
  130 /sbin/chkconfig --add venus.init
  131 
  132 %preun client
  133 grep "^coda" /proc/mounts > /dev/null 2>&1
  134 if [ $? = 0 ]; then
  135 	echo "*** Coda is mounted: cannot uninstall ***"
  136 	exit 1
  137 fi
  138 /sbin/chkconfig --del venus.init
  139 exit 0
  140 
  141 %post server
  142 /sbin/chkconfig --add update.init
  143 /sbin/chkconfig --add auth2.init
  144 /sbin/chkconfig --add codasrv.init
  145 
  146 %preun server
  147 /sbin/chkconfig --del update.init
  148 /sbin/chkconfig --del auth2.init
  149 /sbin/chkconfig --del codasrv.init
  150 
  151 %files client
  152 %defattr(-,root,root)
  153 %dir /usr/coda
  154 %dir /usr/coda/etc
  155 %dir /usr/coda/venus.cache
  156 %dir /coda
  157 %verify() /coda/NOT_REALLY_CODA
  158 /etc/coda/realms
  159 /etc/coda/venus.conf.ex
  160 %{initdir}/venus.init
  161 /usr/sbin/asrlauncher
  162 /usr/sbin/codaconfedit
  163 /usr/sbin/venus
  164 /usr/sbin/venus-setup
  165 /usr/sbin/volmunge
  166 /usr/sbin/vutil
  167 /usr/bin/au
  168 /usr/bin/cfs
  169 /usr/bin/clog
  170 /usr/bin/cmon
  171 /usr/bin/codacon
  172 /usr/bin/cpasswd
  173 /usr/bin/ctokens
  174 /usr/bin/cunlog
  175 /usr/bin/filerepair
  176 /usr/bin/gcodacon
  177 /usr/bin/hoard
  178 /usr/bin/mkcodabf
  179 /usr/bin/mklka
  180 /usr/bin/parser
  181 /usr/bin/removeinc
  182 /usr/bin/repair
  183 /usr/bin/coda_replay
  184 /usr/bin/spy
  185 /usr/bin/xaskuser
  186 /usr/bin/xfrepair
  187 /usr/share/man/man1/au.1.gz
  188 /usr/share/man/man1/cfs.1.gz
  189 /usr/share/man/man1/clog.1.gz
  190 /usr/share/man/man1/cmon.1.gz
  191 /usr/share/man/man1/coda_replay.1.gz
  192 /usr/share/man/man1/cpasswd.1.gz
  193 /usr/share/man/man1/ctokens.1.gz
  194 /usr/share/man/man1/cunlog.1.gz
  195 /usr/share/man/man1/hoard.1.gz
  196 /usr/share/man/man1/mkcodabf.1.gz
  197 /usr/share/man/man1/repair.1.gz
  198 /usr/share/man/man1/spy.1.gz
  199 /usr/share/man/man8/venus.8.gz
  200 /usr/share/man/man8/venus-setup.8.gz
  201 /usr/share/man/man8/volmunge.8.gz
  202 /usr/share/man/man8/vutil.8.gz
  203 
  204 %files server
  205 %defattr(-,root,root)
  206 /etc/coda/server.conf.ex
  207 /usr/sbin/auth2
  208 /usr/sbin/bldvldb.sh
  209 /usr/sbin/coda-server-logrotate
  210 /usr/sbin/codaconfedit
  211 /usr/sbin/codadump2tar
  212 /usr/sbin/codasrv
  213 /usr/sbin/codastart
  214 /usr/sbin/createvol_rep
  215 /usr/sbin/initpw
  216 /usr/sbin/inoder
  217 /usr/sbin/norton
  218 /usr/sbin/norton-reinit
  219 /usr/sbin/parserecdump
  220 /usr/sbin/partial-reinit.sh
  221 /usr/sbin/pdbtool
  222 /usr/sbin/printvrdb
  223 /usr/sbin/purgevol_rep
  224 /usr/sbin/startserver
  225 /usr/sbin/tokentool
  226 /usr/sbin/updatesrv
  227 /usr/sbin/updateclnt
  228 /usr/sbin/updatefetch
  229 /usr/sbin/vice-killvolumes
  230 /usr/sbin/vice-setup
  231 /usr/sbin/vice-setup-rvm
  232 /usr/sbin/vice-setup-srvdir
  233 /usr/sbin/vice-setup-user
  234 /usr/sbin/vice-setup-scm
  235 /usr/sbin/volutil
  236 /usr/bin/getvolinfo
  237 /usr/bin/reinit
  238 /usr/bin/rpc2ping
  239 /usr/bin/rvmsizer
  240 /usr/bin/smon2
  241 /usr/share/man/man5/maxgroupid.5.gz
  242 /usr/share/man/man5/passwd.coda.5.gz
  243 /usr/share/man/man5/servers.5.gz
  244 /usr/share/man/man5/vicetab.5.gz
  245 /usr/share/man/man5/volumelist.5.gz
  246 /usr/share/man/man5/vrdb.5.gz
  247 /usr/share/man/man8/auth2.8.gz
  248 /usr/share/man/man8/bldvldb.sh.8.gz
  249 /usr/share/man/man8/codasrv.8.gz
  250 /usr/share/man/man8/createvol_rep.8.gz
  251 /usr/share/man/man8/initpw.8.gz
  252 /usr/share/man/man8/norton.8.gz
  253 /usr/share/man/man8/pdbtool.8.gz
  254 /usr/share/man/man8/purgevol_rep.8.gz
  255 /usr/share/man/man8/startserver.8.gz
  256 /usr/share/man/man8/updateclnt.8.gz
  257 /usr/share/man/man8/updatesrv.8.gz
  258 /usr/share/man/man8/vice-setup.8.gz
  259 /usr/share/man/man8/volutil.8.gz
  260 %{initdir}/codasrv.init
  261 %{initdir}/auth2.init
  262 %{initdir}/update.init
  263 
  264 %files backup
  265 %defattr(-,root,root)
  266 /usr/sbin/auth2
  267 /usr/sbin/backup
  268 /usr/sbin/backup.sh
  269 /usr/sbin/merge
  270 /usr/sbin/readdump
  271 /usr/sbin/tape.pl
  272 /usr/sbin/updateclnt
  273 /usr/sbin/updatefetch
  274 /usr/sbin/volutil
  275 /usr/share/man/man5/backuplogs.5.gz
  276 /usr/share/man/man5/dumpfile.5.gz
  277 /usr/share/man/man5/dumplist.5.gz
  278 /usr/share/man/man8/backup.8.gz
  279 /usr/share/man/man8/merge.8.gz
  280 /usr/share/man/man8/readdump.8.gz
  281 
  282 %if %{with_vcodacon}
  283 %files vcodacon
  284 %defattr(-,root,root)
  285 /usr/bin/vcodacon
  286 %endif