The following changes were made to Makefile:

* added BRIEF
  * moved to new version scheme
  * removed MAKE and MAKEINST vars
This commit is contained in:
2017-03-29 15:48:51 -05:00
parent ad281eae64
commit 03f3a2cc29

View File

@@ -11,21 +11,18 @@
DEPENDS = glibc
ARCH = x86_64
URL = http://www.infodrom.org/projects/sysklogd/
BRIEF = The syslog and klog daemons
DESC = This package implements two system log daemons. The syslogd daemon \
is an enhanced version of the standard Berkeley utility program. The klogd \
daemon listens to kernel message sources and is responsible for prioritizing \
and processing operating system messages.
SNAPVER = sr0
SNAPVER = 2
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
SRCDIR := $(shell tar -tf $(ARCHIVE)|head -1|sed 's/\/.*//')
PATCHDIR := $(PWD)/SRC/patches
VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'|sed 's/^-//')$(SNAPVER)
MAKE = make
MAKEINST = BINDIR=/sbin make install
SNAPHACKS =
VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'|sed 's/^-//')-$(SNAPVER)
include /usr/share/snap/Makefile.snaplinux
@@ -49,8 +46,7 @@ $(SRCDIR)/syslogd: $(SRCDIR)/Makefile
for patch in `find $(PATCHDIR) -name \*.patch|sort`; do \
patch --verbose -Np1 -i $$patch; \
done
@cd $(SRCDIR); \
$(MAKE)
@cd $(SRCDIR) && make
$(ROOT): $(SRCDIR)/syslogd
@if [ -d $(ROOT) ]; then \
@@ -59,10 +55,7 @@ $(ROOT): $(SRCDIR)/syslogd
mkdir -v $(ROOT); \
fi
@cd $(SRCDIR); \
$(MAKEINST) DESTDIR=$(ROOT)
@$(SNAPHACKS)
@cd $(SRCDIR) && make install DESTDIR=$(ROOT) BINDIR=/sbin
test: $(ROOT)
@cd $(SRCDIR); \