Moved to new slp format
This commit is contained in:
15
Makefile
15
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)
|
||||
|
||||
Reference in New Issue
Block a user