From d15b57f91f82f2640b724e3429f9d4027690ed9d Mon Sep 17 00:00:00 2001 From: Jay Larson Date: Sun, 16 Aug 2020 17:16:48 -0500 Subject: [PATCH] Moved to new slp format --- Makefile | 15 ++++++++------- {SNAP => SL}/README | 0 {SNAP => SL}/acpid.init | 0 {SNAP => SL}/powerbutton | 0 4 files changed, 8 insertions(+), 7 deletions(-) rename {SNAP => SL}/README (100%) rename {SNAP => SL}/acpid.init (100%) rename {SNAP => SL}/powerbutton (100%) diff --git a/Makefile b/Makefile index 7aadc96..7652531 100644 --- a/Makefile +++ b/Makefile @@ -8,20 +8,21 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -DEPENDS = +DEPENDS = dash,glibc ARCH = x86_64 URL = https://sourceforge.net/projects/acpid2/ +REPO = main BRIEF = Advanced Configuration and Power Interface event daemon DESC = Advanced Configuration and Power Interface event daemon -SNAPVER = 2 +SLVER = 3 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) +VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'|sed 's/^-//')-$(SLVER) -include /usr/share/snap/Makefile.snaplinux +include /usr/share/sl/Makefile.snaplinux $(SRCDIR)/configure: $(ARCHIVE) @if [ '$(TYPE)' == 'application/x-bzip2' ]; then \ @@ -63,8 +64,8 @@ $(ROOT): $(SRCDIR)/binfile @cd $(SRCDIR) && make install DESTDIR=$(ROOT) && \ install -v -d -m 0755 $(ROOT)/etc/init.d && \ install -v -d -m 0755 $(ROOT)/etc/acpid/events && \ - install -v -m 0755 $(SNAPDIR)/acpid.init $(ROOT)/etc/init.d/acpid && \ - install -v -m 0644 $(SNAPDIR)/powerbutton \ + install -v -m 0755 $(SLDIR)/acpid.init $(ROOT)/etc/init.d/acpid && \ + install -v -m 0644 $(SLDIR)/powerbutton \ $(ROOT)/etc/acpid/events/powerbutton test: $(ROOT) @@ -73,7 +74,7 @@ test: $(ROOT) clean: @rm -rvf $(ROOT) \ - $(SNAPINFO) \ + $(SLINFO) \ $(MANIFEST) \ $(FILES) \ $(SRCDIR) diff --git a/SNAP/README b/SL/README similarity index 100% rename from SNAP/README rename to SL/README diff --git a/SNAP/acpid.init b/SL/acpid.init similarity index 100% rename from SNAP/acpid.init rename to SL/acpid.init diff --git a/SNAP/powerbutton b/SL/powerbutton similarity index 100% rename from SNAP/powerbutton rename to SL/powerbutton