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

Last change on this file since 431 was 390, checked in by bastiaans, 15 years ago

pkg/rpm/jobmonarch-jobarchived.spec:

  • remove DBClass.py from packaging
  • use usr/bin like deb pkg
  • jobarchived.conf instead of jobarchived.conf-dist

pkg/deb/jobarchived/DEBIAN/conffiles:

  • added jobarchived.conf
File size: 1.2 KB
RevLine 
[378]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 ] && [ -x /usr/sbin/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
42
43
44%postun
45#!/bin/sh
46
47PATH=/bin:/sbin:/usr/bin:/usr/sbin
48
49chkconfig jobarchived off
50
51
52%description
53
54
55Job MonArch's archive daemon
56
57%files
[390]58"/usr/bin/jobarchived.py"
[378]59"/etc/init.d/jobarchived"
[390]60"/etc/jobarchived.conf"
61"/usr/bin/jobarchived"
[378]62%dir "/usr/share/jobarchived/"
63"/usr/share/jobarchived/job_dbase.sql"
Note: See TracBrowser for help on using the repository browser.