summaryrefslogtreecommitdiff
path: root/redhat/rules
blob: 027afd504ac6ed1707b996ac24e7b2194215baec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
$Summary = "Ivyd, an Ivy relay for short-lived applications";
$Name = "ivyd";
$Copyright = "GPL";
$Vendor = "Centre d'Etudes de la Navigation Aerienne";
$Distribution = "Ivy";
$Group = "System Environment/Daemons";
$Url = "http://www.tls.cena.fr/products/ivy";
$BuildArchitectures = "i386";
$BuildRoot = "/var/tmp/ivyd-buildroot/";
$Requires = "ivy-c";
$Description = "Ivyd is a daemon that stays connected to an Ivy bus,
allowing short-lived applications to emit messages on the bus
without having to wait the time to establish full Ivy connectivity.
This package commes with ivyecho, a sample client for ivyd. It should
(but does not yet) come with a library for developping other clients.";

$Install = "rm -rf \$RPM_BUILD_ROOT
cd src
make PREFIX=\$RPM_BUILD_ROOT install
cd ..
mkdir -p \$RPM_BUILD_ROOT/etc/rc.d/init.d
install -m 755 redhat/ivyd.init \$RPM_BUILD_ROOT/etc/rc.d/init.d/ivyd
find \$RPM_BUILD_ROOT -type f -print | sed \"s\@^\$RPM_BUILD_ROOT\@\@g\" > $Name-\%{version}-filelist
find \$RPM_BUILD_ROOT -type l -print | sed \"s\@^\$RPM_BUILD_ROOT\@\@g\" >> $Name-\%{Version}-filelist";
$Post = "/sbin/chkconfig --add ivyd";
$Preun = "/sbin/chkconfig --del ivyd";