3 Commits

Author SHA1 Message Date
Jay Larson
fc1761d107 Removed unused Makefile targets and added gzip of some docs 2017-01-22 11:47:30 -06:00
Jay Larson
c406470a7b Tweaked build process to gzip man pages and also corrected dependency from attr to libattr 2017-01-22 11:24:39 -06:00
Jay Larson
d280dd817c Removed old commented junk from Makefile 2017-01-21 16:32:41 -06:00

View File

@@ -9,12 +9,12 @@
# GNU General Public License for more details. # GNU General Public License for more details.
export SRCPKG = acl export SRCPKG = acl
export DEPENDS = attr,glibc,libacl export DEPENDS = glibc,libacl,libattr
export ARCH = x86_64 export ARCH = x86_64
export URL = http://savannah.nongnu.org/projects/acl export URL = http://savannah.nongnu.org/projects/acl
BRIEF = Access control list tools BRIEF = Access control list tools
DESC = Commands for Manipulating POSIX Access Control Lists DESC = Commands for Manipulating POSIX Access Control Lists
SNAPVER = 4 SNAPVER = 7
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1) ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n') TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
@@ -28,23 +28,8 @@ export LIBACLROOT := $(LIBACL)/ROOT
LIBACLDEV := $(PWD)/libacl-dev LIBACLDEV := $(PWD)/libacl-dev
export LIBACLDEVROOT := $(LIBACLDEV)/ROOT export LIBACLDEVROOT := $(LIBACLDEV)/ROOT
#SNAPHACKS = if [ -h $(ROOT)/lib/libacl.a ]; then \
# rm -v $(ROOT)/lib/libacl.a; fi
include /usr/share/snap/Makefile.snaplinux include /usr/share/snap/Makefile.snaplinux
$(LIBACLROOT): $(ROOT)
@install -v -d $(LIBACL)/SNAP && \
install -v -d $(LIBACLROOT)
@cd $(SRCDIR) && make install-lib DESTDIR=$(LIBACLROOT)
@cd $(LIBACL) && make -f ../Makefile.libacl && mv *.snap ../
$(LIBACLDEVROOT): $(ROOT)
@install -v -d $(LIBACLDEV)/SNAP && \
install -v -d $(LIBACLDEVROOT)
@cd $(SRCDIR) && make install-dev DESTDIR=$(LIBACLDEVROOT)
@cd $(LIBACLDEV) && make -f ../Makefile.libacldev && mv *.snap ../
$(SRCDIR): $(ARCHIVE) $(SRCDIR): $(ARCHIVE)
@if [ '$(TYPE)' == 'application/x-bzip2' ]; then \ @if [ '$(TYPE)' == 'application/x-bzip2' ]; then \
tar -jxf $(ARCHIVE); \ tar -jxf $(ARCHIVE); \
@@ -89,6 +74,7 @@ $(ROOT): $(SRCDIR)/chacl/.libs/chacl
cd $(SRCDIR) && make install-lib DESTDIR=$(LIBACLROOT) && \ cd $(SRCDIR) && make install-lib DESTDIR=$(LIBACLROOT) && \
make install-dev DESTDIR=$(LIBACLDEVROOT) && \ make install-dev DESTDIR=$(LIBACLDEVROOT) && \
make install DESTDIR=$(ROOT) && \ make install DESTDIR=$(ROOT) && \
gzip $(ROOT)/usr/share/doc/*/COPYING* && \
cd $(LIBACL) && make -f ../Makefile.libacl && mv *.snap ../ && \ cd $(LIBACL) && make -f ../Makefile.libacl && mv *.snap ../ && \
cd $(LIBACLDEV) && make -f ../Makefile.libacldev && mv *.snap ../ cd $(LIBACLDEV) && make -f ../Makefile.libacldev && mv *.snap ../