Skip to content

Commit b7287fa

Browse files
author
Balazs Scheidler
committed
added debianization files, misc build fixes
2005-12-03 Balazs Scheidler <bazsi@balabit.hu> * debian/*: added debianization files * configure.in: added VERSION file instead of having the actual VERSION inline, added CURRDATE to make it possible to generate debian/changelog automatically
1 parent 89646a5 commit b7287fa

20 files changed

+1136
-1
lines changed

ChangeLog

+48
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,54 @@
22
# arch-tag: automatic-ChangeLog--bazsi@balabit.hu--bazsi-1/syslog-ng--mainline--2.0
33
#
44

5+
2005-12-03 11:23:46 GMT Balazs Scheidler <bazsi@balabit.hu> patch-73
6+
7+
Summary:
8+
added debianization files, misc build fixes
9+
Revision:
10+
syslog-ng--mainline--2.0--patch-73
11+
12+
2005-12-03 Balazs Scheidler <bazsi@balabit.hu>
13+
14+
* debian/*: added debianization files
15+
16+
* configure.in: added VERSION file instead of having the actual
17+
VERSION inline, added CURRDATE to make it possible to generate
18+
debian/changelog automatically
19+
20+
21+
new files:
22+
debian/.arch-ids/=id debian/.arch-ids/README.Debian.id
23+
debian/.arch-ids/changelog.in.id debian/.arch-ids/control.id
24+
debian/.arch-ids/copyright.id debian/.arch-ids/rules.id
25+
debian/.arch-ids/syslog-ng.conf.example.id
26+
debian/.arch-ids/syslog-ng.conf.id
27+
debian/.arch-ids/syslog-ng.default.id
28+
debian/.arch-ids/syslog-ng.docs.id
29+
debian/.arch-ids/syslog-ng.files.id
30+
debian/.arch-ids/syslog-ng.init.id
31+
debian/.arch-ids/syslog-ng.logcheck.ignore.id
32+
debian/.arch-ids/syslog-ng.logrotate.example.id
33+
debian/.arch-ids/syslog-ng.logrotate.id
34+
debian/.arch-ids/syslog-ng.postinst.id
35+
debian/.arch-ids/syslog-ng.postrm.id
36+
debian/.arch-ids/syslog-ng.preinst.id debian/README.Debian
37+
debian/changelog.in debian/control debian/copyright
38+
debian/rules debian/syslog-ng.conf
39+
debian/syslog-ng.conf.example debian/syslog-ng.default
40+
debian/syslog-ng.docs debian/syslog-ng.files
41+
debian/syslog-ng.init debian/syslog-ng.logcheck.ignore
42+
debian/syslog-ng.logrotate debian/syslog-ng.logrotate.example
43+
debian/syslog-ng.postinst debian/syslog-ng.postrm
44+
debian/syslog-ng.preinst
45+
46+
modified files:
47+
ChangeLog Makefile.am configure.in
48+
49+
new directories:
50+
debian debian/.arch-ids
51+
52+
553
2005-11-25 15:25:19 GMT Balazs Scheidler <bazsi@balabit.hu> patch-72
654

755
Summary:

Makefile.am

+7
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
11
SUBDIRS = src tests doc contrib
2+
3+
EXTRA_DIST = debian/README.Debian debian/copyright debian/syslog-ng.conf.example debian/syslog-ng.files debian/syslog-ng.logrotate debian/syslog-ng.postrm \
4+
debian/changelog debian/changelog.in debian/rules debian/syslog-ng.default debian/syslog-ng.init debian/syslog-ng.logrotate.example debian/syslog-ng.preinst \
5+
debian/control debian/syslog-ng.conf debian/syslog-ng.docs debian/syslog-ng.logcheck.ignore debian/syslog-ng.postinst
6+
7+
debian/changelog: debian/changelog.in
8+
$(top_builddir)/config.status --file $@:$<

configure.in

+10-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ dnl ***************************************************************************
55
dnl definitions
66

77
PACKAGE="syslog-ng"
8-
VERSION="1.9.6"
8+
VERSION="`cat $srcdir/VERSION`"
99

1010
dnl ***************************************************************************
1111
dnl dependencies
@@ -22,6 +22,13 @@ if test -r $srcdir/dist.conf; then
2222
source $srcdir/dist.conf
2323
fi
2424

25+
if test "`uname -s`" = "Linux";then
26+
CURRDATE=`date -R`
27+
else
28+
CURRDATE=`date +"%a, %d %b %Y %H:%M:%S %Z"`
29+
fi
30+
31+
2532

2633
AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
2734
if test -n "$SNAPSHOT_VERSION"; then
@@ -213,6 +220,8 @@ AC_SUBST(DEPS_CPPFLAGS)
213220
AC_SUBST(DEPS_LIBS)
214221
AC_SUBST(YFLAGS)
215222

223+
AC_SUBST(CURRDATE)
224+
AC_SUBST(RELEASE_TAG)
216225
AC_SUBST(SNAPSHOT_VERSION)
217226
AC_SUBST(SOURCE_REVISION)
218227

debian/README.Debian

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
syslog-ng for DEBIAN
2+
--------------------
3+
If you upgrade from previous version (<=1.5.18-1 and >= 1.5.8-2) of syslog-ng
4+
you must restart named and possibly other daemons too, because socket type
5+
is changed.
6+
7+
syslog-ng doesn't have the -r switch to enable remote logging, but have a
8+
config file option for this.
9+
See /etc/syslog-ng/syslog-ng.conf, syslog-ng.conf(5) and
10+
/usr/share/doc/syslog-ng/html/book1.html for details.
11+
12+
Include a logrotate and syslog-ng conf example from
13+
Jörg Sommer <joerg@alea.gnuu.de>
14+

debian/changelog.in

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@PACKAGE@ (@VERSION@) @RELEASE_TAG@; urgency=low
2+
3+
* New upstream version.
4+
5+
-- BalaBit Development Team <devel@balabit.hu> @CURRDATE@
6+
7+
Local variables:
8+
mode: debian-changelog
9+
End:

debian/control

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Source: syslog-ng
2+
Section: admin
3+
Priority: extra
4+
Maintainer: SZALAY Attila <sasa@debian.org>
5+
Build-depends: debhelper (>=3.0.0), libevtlog-dev
6+
Standards-Version: 3.6.1
7+
8+
Package: syslog-ng
9+
Architecture: any
10+
Depends: ${shlibs:Depends}, util-linux (>= 2.12-10)
11+
Recommends: logrotate
12+
Provides: system-log-daemon, linux-kernel-log-daemon
13+
Conflicts: system-log-daemon, linux-kernel-log-daemon
14+
Description: Next generation logging daemon
15+
Syslog-ng tries to fill the gaps original syslogd's were lacking:
16+
* powerful configurability
17+
* filtering based on message content
18+
* portability
19+
* better network forwarding

debian/copyright

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
This is syslog-ng, written and maintained by <bazsi@balabit.hu>
2+
on Fri, 28 May 1999 15:47:28 +0200.
3+
4+
The original source can always be found at:
5+
http://www.balabit.hu/downloads/syslog-ng/source
6+
7+
Copyright (C) 1999 BalaBit Computing
8+
9+
FIXMEE

debian/rules

+110
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
#!/usr/bin/make -f
2+
#-*- makefile -*-
3+
# Made with the aid of dh_make, by Craig Small
4+
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
5+
# Some lines taken from debmake, by Christoph Lameter.
6+
7+
# Uncomment this to turn on verbose mode.
8+
#export DH_VERBOSE=1
9+
export DH_COMPAT=3
10+
11+
DDEBUG=`if (echo $(DEB_BUILD_OPTIONS) | grep -q debug) then \
12+
echo "--enable-debug"; \
13+
else \
14+
echo ""; \
15+
fi`
16+
17+
build: build-stamp
18+
build-stamp:
19+
dh_testdir
20+
21+
./configure --prefix=/ \
22+
$(DDEBUG) \
23+
--mandir=/usr/share/man \
24+
--sysconfdir=/etc/syslog-ng
25+
# Add here commands to compile the package.
26+
27+
$(MAKE)
28+
29+
# (cd doc/sgml; $(MAKE) syslog-ng.html.tar.gz)
30+
31+
touch build-stamp
32+
clean:
33+
dh_testdir
34+
dh_testroot
35+
rm -f build-stamp
36+
37+
# Add here commands to clean up after the build process.
38+
-$(MAKE) distclean
39+
# rm -f doc/sgml/syslog-ng.dvi doc/sgml/syslog-ng.html.tar.gz doc/sgml/syslog-ng.ps
40+
# rm -rf doc/sgml/syslog-ng.html doc/sgml/syslog-ng.txt
41+
# rm -rf src/cfg-grammar.c
42+
43+
dh_clean
44+
45+
install: build
46+
dh_testdir
47+
dh_testroot
48+
dh_clean -k
49+
dh_installdirs
50+
51+
# Add here commands to install the package into debian/tmp.
52+
$(MAKE) install DESTDIR=`pwd`/debian/tmp
53+
54+
dh_movefiles
55+
56+
# install -d -m 755 debian/syslog-ng/etc/default
57+
# install -m 644 debian/syslog-ng.default debian/syslog-ng/etc/default/syslog-ng
58+
# install -d -m 700 debian/syslog-ng/etc/syslog-ng
59+
# install -m 644 debian/syslog-ng.conf debian/syslog-ng/etc/syslog-ng
60+
61+
# install -d -m 700 debian/syslog-ng/etc/logcheck/ignore.d.paranoid
62+
# install -m 644 debian/syslog-ng.logcheck.ignore debian/syslog-ng/etc/logcheck/ignore.d.paranoid/syslog-ng
63+
# install -d -m 700 debian/syslog-ng/etc/logcheck/ignore.d.server
64+
# install -m 644 debian/syslog-ng.logcheck.ignore debian/syslog-ng/etc/logcheck/ignore.d.server/syslog-ng
65+
# install -d -m 700 debian/syslog-ng/etc/logcheck/ignore.d.workstation
66+
# install -m 644 debian/syslog-ng.logcheck.ignore debian/syslog-ng/etc/logcheck/ignore.d.workstation/syslog-ng
67+
68+
# Build architecture-independent files here.
69+
binary-indep: build install
70+
# We have nothing to do by default.
71+
72+
# Build architecture-dependent files here.
73+
binary-arch: build install
74+
# dh_testversion
75+
dh_testdir
76+
dh_testroot
77+
dh_installdocs
78+
# rm debian/syslog-ng/usr/share/doc/syslog-ng/sgml/Makefile*
79+
# (cd debian/syslog-ng/usr/share/doc/syslog-ng/sgml; mv syslog-ng.html ../html; ls)
80+
# rm debian/syslog-ng/usr/share/doc/syslog-ng/sgml/syslog-ng.html.tar.gz
81+
# (cd debian/syslog-ng/usr/share/doc/syslog-ng/sgml; mv syslog-ng.* ..)
82+
# rm -rf debian/syslog-ng/usr/share/doc/syslog-ng/sgml
83+
# rm -f debian/syslog-ng/usr/share/doc/syslog-ng/INSTALL
84+
# rm -f debian/syslog-ng/usr/share/doc/syslog-ng/syslog-ng.conf.demo
85+
# rm -f debian/syslog-ng/usr/share/doc/syslog-ng/syslog-ng.conf.sample
86+
# rm -f debian/syslog-ng/usr/share/doc/syslog-ng/syslog-ng.conf.solaris
87+
dh_installexamples
88+
# dh_installmenu
89+
# dh_installemacsen
90+
dh_installinit -r --no-start -- defaults 10 90
91+
dh_installcron
92+
dh_installlogrotate
93+
# dh_installmanpages
94+
# dh_undocumented
95+
dh_installchangelogs ChangeLog
96+
# dh_link
97+
dh_strip
98+
dh_compress
99+
dh_fixperms
100+
# You may want to make some executables suid here
101+
# dh_suidregister
102+
# dh_makeshlibs
103+
dh_installdeb
104+
dh_shlibdeps
105+
dh_gencontrol
106+
dh_md5sums
107+
dh_builddeb
108+
109+
binary: binary-indep binary-arch
110+
.PHONY: build clean binary-indep binary-arch binary

0 commit comments

Comments
 (0)