diff --git a/Makefile b/Makefile index 45511df..41cf5c8 100644 --- a/Makefile +++ b/Makefile @@ -12,22 +12,23 @@ export SRCPKG = libcap export DEPENDS = glibc export ARCH = x86_64 export URL = https://sites.google.com/site/fullycapable/ +REPO = core BRIEF = Library for POSIX.1e functionality DESC = This is a library for getting and setting POSIX.1e (formerly POSIX 6) \ draft 15 capabilities. -SNAPVER = 4 +SLVER = 5 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 export VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'| \ - sed 's/^-//')-$(SNAPVER) + sed 's/^-//')-$(SLVER) DEV := $(PWD)/libcap-dev DEVROOT := $(DEV)/ROOT -include /usr/share/snap/Makefile.snaplinux +include /usr/share/sl/Makefile.snaplinux $(SRCDIR)/Makefile: $(ARCHIVE) @if [ '$(TYPE)' == 'application/x-bzip2' ]; then \ @@ -61,7 +62,7 @@ $(ROOT): $(SRCDIR)/progs/setcap @cd $(SRCDIR) && make RAISE_SETFCAP=no prefix=/usr \ install DESTDIR=$(ROOT) - @install -v -d $(DEV)/SNAP && \ + @install -v -d $(DEV)/SL && \ install -v -d $(DEVROOT) && \ for file in `find $(ROOT)|egrep 'man3\/|pkgconfig\/|\.a$$|\.h$$'`; do \ path=`dirname $$file|sed "s[$(ROOT)[$(DEVROOT)["`; \ @@ -69,12 +70,12 @@ $(ROOT): $(SRCDIR)/progs/setcap mv $$file $$path; \ done && \ find $(ROOT) -type d -empty -delete && \ - cd $(DEV) && make -f ../Makefile.libcap-dev && mv *.snap ../ + cd $(DEV) && make -f ../Makefile.libcap-dev && mv *.slp ../ clean: @rm -rvf $(ROOT) \ $(DEV) \ - $(SNAPINFO) \ + $(SLINFO) \ $(MANIFEST) \ $(FILES) \ $(SRCDIR) diff --git a/Makefile.libcap-dev b/Makefile.libcap-dev index fc8601a..34e18af 100644 --- a/Makefile.libcap-dev +++ b/Makefile.libcap-dev @@ -9,7 +9,8 @@ # GNU General Public License for more details. DEPENDS = libcap +REPO = dev BRIEF = Development files for libcap DESC = Development files for libcap -include /usr/share/snap/Makefile.snaplinux +include /usr/share/sl/Makefile.snaplinux diff --git a/SNAP/README b/SL/README similarity index 100% rename from SNAP/README rename to SL/README