]> git.ipfire.org Git - ipfire-3.x.git/blobdiff - lfs/syslog-ng
Improved detection if buildspy is already running.
[ipfire-3.x.git] / lfs / syslog-ng
index bd170e871ce9bca24cf36cfed21f218d5b70f95c..e0e4559f0833f849606fc39e5b0fc3d991523baf 100644 (file)
 include Config
 
 PKG_NAME   = syslog-ng
-VER        = 2.0.10
+PKG_VER    = 2.1.3
+PKG_REL    = 0
 
-THISAPP    = $(PKG_NAME)-$(VER)
+THISAPP    = $(PKG_NAME)-$(PKG_VER)
 DL_FILE    = $(THISAPP).tar.gz
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 
 OBJECT     = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP)
 
+MAINTAINER =
+GROUP      = System/Tools
+EXTRA      = no
+DEBUG      = no
+DEPS       = eventlog glib2
+
+URL        = http://www.balabit.com/network-security/syslog-ng/
+LICENSE    = GPLv2+
+SHORT_DESC = Syslog-ng is a daemon that handles the logging stuff.
+
+define LONG_DESC
+       The syslog-ng application can operate in server or agent mode, and - \
+       apart from UDP - supports the reliable TCP and the encrypted TLS protocols. \
+       That way syslog-ng can be used to create flexible and reliable logging \
+       infrastructure even in heterogeneous environments.
+endef
+
 ###############################################################################
 # Top-level Rules
 ###############################################################################
 
 objects = $(DL_FILE)
 
-install : $(OBJECT)
+download: $(objects)
 
-download : $(objects)
+info:
+       $(DO_PKG_INFO)
 
-$(objects) :
+install: $(OBJECT)
+
+package:
+       @$(DO_PACKAGE)
+
+$(objects):
        @$(LOAD)
 
 ###############################################################################
 # Installation Details
 ###############################################################################
 
-$(OBJECT) : 
+$(OBJECT): $(objects)
        @$(PREBUILD)
-       @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
-       cd $(DIR_APP) && PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig ./configure --enable-dynamic-linking && make $(PARALLELISMFLAGS)
+       @rm -rf $(DIR_APP) && cd $(DIR_SRC) && $(EXTRACTOR) $(DIR_DL)/$(DL_FILE)
+
+       cd $(DIR_APP) && \
+               ./configure \
+                       $(CONFIGURE_ARCH) \
+                       --prefix=/usr \
+                       --sbindir=/sbin \
+                       --libexecdir=/usr/lib \
+                       --sysconfdir=/etc/syslog-ng \
+                       --enable-dynamic-linking \
+                       --disable-sql \
+                       --disable-pcre \
+                       --with-pidfile-dir=/var/run \
+                       --disable-ssl
+       cd $(DIR_APP) && make $(PARALLELISMFLAGS)
        cd $(DIR_APP) && make install
 
+       -mkdir -pv /etc/$(PKG_NAME)
        cp -vf $(DIR_CONF)/$(PKG_NAME)/$(PKG_NAME).conf \
-               /etc/$(PKG_NAME).conf
+               /etc/$(PKG_NAME)/$(PKG_NAME).conf
+       ## Should be in $(DIR_SOURCE)/$(PKG_NAME) at some time
+       install -v -m 755 $(DIR_CONF)/$(PKG_NAME)/ids-block \
+               /usr/sbin/ids-block
 
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)