"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/libcap/Makefile" between
proftpd-1.3.6b.tar.gz and proftpd-1.3.6c.tar.gz

About: ProFTPD is a highly configurable FTP server software (with FTPS and SFTP support).

Makefile  (proftpd-1.3.6b):Makefile  (proftpd-1.3.6c)
## This libcap (for proftpd) is originally from libcap-1.10, ## This libcap (for proftpd) is originally from libcap, at:
## at ftp://linux.kernel.org/pub/libs/security/linux-privs. ## https://github.com/mhiramat/libcap.git.
## This interface is SPECIFIC TO THE LINUX 2.2 KERNEL!!! IT IS NOT GUARANTEED ## This interface is SPECIFIC TO THE LINUX 2.2 KERNEL!!! IT IS NOT GUARANTEED
## TO WORK ON ANY PRIOR OR LATER VERSION (ie: 2.1.x or 2.3.x). ## TO WORK ON ANY PRIOR OR LATER VERSION (ie: 2.1.x or 2.3.x).
## If this library stops working, please contact core@proftpd.org. ## If this library stops working, please contact core@proftpd.org.
# #
# defines # defines
# #
topdir=$(shell pwd)/.. topdir=$(shell pwd)/..
include ../../Make.rules include ../../Make.rules
KERNEL_HEADERS=/usr/include
LIBTITLE=libcap
# #
# Library version # Library version
# #
LIBNAME=libcap.a LIBNAME=$(LIBTITLE).so
STALIBNAME=$(LIBTITLE).a
# #
FILES=cap_alloc cap_proc cap_extint cap_flag cap_text cap_sys FILES=cap_alloc cap_proc cap_extint cap_flag cap_text cap_file
# for later when there is filesystem support for cap's:
#FILES += cap_file
INCLS=libcap.h cap_names.h $(INCS) INCLS=libcap.h cap_names.h $(INCS)
OBJS=$(addsuffix .o, $(FILES)) OBJS=$(addsuffix .o, $(FILES))
all: $(LIBNAME) all: $(STALIBNAME)
_makenames: _makenames.c cap_names.sed _makenames: _makenames.c cap_names.list.h
$(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ $(CC) $(CFLAGS) $< -o $@
cap_names.h: _makenames cap_names.h: _makenames
./_makenames > cap_names.h ./_makenames > cap_names.h
cap_names.sed: Makefile /usr/include/linux/capability.h cap_names.list.h: Makefile $(KERNEL_HEADERS)/linux/capability.h
@echo "=> making cap_names.c from <linux/capability.h>" @echo "=> making $@ from $(KERNEL_HEADERS)/linux/capability.h"
@sed -ne '/^#define[ \t]CAP[_A-Z]\+[ \t]\+[0-9]\+/{s/^#define \([^ \t]*\) perl -e 'while ($$l=<>) { if ($$l =~ /^\#define[ \t](CAP[_A-Z]+)[ \t]+([0
[ \t]*\([^ \t]*\)/ \{ \2, \"\1\" \},/;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijkl -9]+)\s+$$/) { $$tok=$$1; $$val=$$2; $$tok =~ tr/A-Z/a-z/; print "{\"$$tok\",$$v
mnopqrstuvwxyz/;p;}' < /usr/include/linux/capability.h | fgrep -v 0x > cap_names al},\n"; } }' $(KERNEL_HEADERS)/linux/capability.h | fgrep -v 0x > $@
.sed
# @sed -ne '/^#define[ \t]CAP[_A-Z]\+[ \t]\+[0-9]\+/{s/^#define CAP_\([^ \t $(STALIBNAME): $(OBJS)
]*\)[ \t]*\([^ \t]*\)/ \{ \2, \"\1\" \},/;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefgh $(AR) rcs $@ $^
ijklmnopqrstuvwxyz/;p;}' < /usr/include/linux/capability.h | fgrep -v 0x > cap_n $(RANLIB) $@
ames.sed
$(LIBNAME): $(OBJS)
ar rcu $@ $(OBJS)
%.o: %.c $(INCLS) %.o: %.c $(INCLS)
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) $(IPATH) -c $< -o $@
cap_text.o: cap_text.c $(INCLS)
$(CC) $(CFLAGS) $(IPATH) -c $< -o $@
install: all install: all
mkdir -p -m 0755 $(INCDIR)/sys mkdir -p -m 0755 $(FAKEROOT)$(INCDIR)/sys
install -m 0644 include/sys/capability.h $(INCDIR)/sys install -m 0644 include/sys/capability.h $(FAKEROOT)$(INCDIR)/sys
mkdir -p -m 0755 $(LIBDIR)
install -m 0644 $(MINLIBNAME) $(LIBDIR)/$(MINLIBNAME)
ln -sf $(MINLIBNAME) $(LIBDIR)/$(MAJLIBNAME)
ln -sf $(MAJLIBNAME) $(LIBDIR)/$(LIBNAME)
-/sbin/ldconfig -/sbin/ldconfig
clean: clean:
$(LOCALCLEAN) rm -f $(OBJS) $(LIBNAME)* $(STALIBNAME)
rm -f $(OBJS) $(LIBNAME)* rm -f cap_names.h cap_names.list.h _makenames
rm -f cap_names.h cap_names.sed _makenames
 End of changes. 10 change blocks. 
30 lines changed or deleted 27 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)