source: trunk/pkg/rpm/jobmonarch-jobarchived.spec @ 441

Last change on this file since 441 was 441, checked in by bastiaans, 15 years ago
  • more pkg fixes
File size: 1.2 KB
Line 
1Buildroot: 
2Name: jobmonarch-jobarchived
3Version: 
4Release: 
5Summary: Job Archiving Daemon
6License: see /usr/share/doc/jobmonarch-jobarchived/copyright
7Distribution: Debian
8Group: Converted/misc
9
10%define _rpmdir ../
11%define _rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm
12%define _unpackaged_files_terminate_build 0
13
14%post
15#!/bin/sh
16
17PATH=/bin:/sbin:/usr/bin:/usr/sbin
18
19if [ -x /etc/init.d/jobarchived ]
20        then
21
22                chkconfig jobarchived on
23
24fi
25
26echo ""
27echo "Additional manual changes are required to setup jobarchived:"
28echo ""
29echo "1) Edit /etc/jobarchived.conf to reflect your local settings and setup:"
30echo "   - ARCHIVE_DATASOURCES and ARCHIVE_PATH"
31echo ""
32echo "2) Create a 'jobarchive' database and create jobarchived's tables:" 
33echo "   - createdb jobarchive"
34echo "   - psql -f /usr/share/jobarchived/job_dbase.sql jobarchive"
35echo ""
36
37
38%preun
39#!/bin/sh
40
41/etc/init.d/jobarchived stop
42chkconfig jobarchived off
43
44
45%description
46
47
48Job MonArch's archive daemon
49
50%files
51"/usr/sbin/jobarchived.py"
52"/usr/sbin/jobarchived"
53"/etc/init.d/jobarchived"
54%config "/etc/jobarchived.conf"
55%config "/etc/sysconfig/jobarchived"
56%dir "/usr/share/jobarchived/"
57"/usr/share/jobarchived/job_dbase.sql"
Note: See TracBrowser for help on using the repository browser.