Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2f6479700d |
18
Makefile
18
Makefile
@@ -16,7 +16,7 @@
|
||||
# server. This might be one of core, main, dev, or
|
||||
# perhaps others.
|
||||
# * BRIEF: Short description, should be 50 chars or less
|
||||
# * SNAPVER: This is the package version. When a package is
|
||||
# * SLVER: This is the package version. When a package is
|
||||
# changed, but no changes are made to the source code
|
||||
# this value should be increased. This would include
|
||||
# things like usher being modified, changes to default
|
||||
@@ -34,7 +34,7 @@
|
||||
# * PATCHDIR: This directory should be ./SRC/patches and is
|
||||
# required, whether or not patches are used.
|
||||
# * VERSION: This should be set automatically based on the
|
||||
# version string in the source directory and SNAPVER.
|
||||
# version string in the source directory and SLVER.
|
||||
# The default command here should work in many cases,
|
||||
# but certain packages may need to use a different
|
||||
# method.
|
||||
@@ -65,22 +65,22 @@ export SRCPKG = krb5
|
||||
export DEPENDS = dash,e2fsprogs,glibc,openssl
|
||||
export ARCH = x86_64
|
||||
export URL = https://web.mit.edu/kerberos/
|
||||
BUILDDEPS =
|
||||
BUILDDEPS = bison,gcc,krb5-dev
|
||||
REPO = main
|
||||
BRIEF = Kerberos is a network authentication protocol
|
||||
DESC = Kerberos is a network authentication protocol. It is designed to \
|
||||
provide strong authentication for client/server applications by using \
|
||||
secret-key cryptography.
|
||||
SNAPVER = 1
|
||||
SLVER = 2
|
||||
|
||||
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)
|
||||
|
||||
include /usr/share/snap/Makefile.snaplinux
|
||||
include /usr/share/sl/Makefile.snaplinux
|
||||
|
||||
DEV := $(PWD)/krb5-dev
|
||||
DEVROOT := $(DEV)/ROOT
|
||||
@@ -134,7 +134,7 @@ $(ROOT): $(SRCDIR)/src/binfile
|
||||
fi
|
||||
|
||||
@cd $(SRCDIR)/src && make install DESTDIR=$(ROOT) && \
|
||||
install -v -d $(DEV)/SNAP && \
|
||||
install -v -d $(DEV)/SL && \
|
||||
install -v -d $(DEVROOT) && \
|
||||
for file in `find $(ROOT)| \
|
||||
egrep 'pkgconfig\/|\.a$$|\.h$$|\.la$$|\.pc$$'`; do \
|
||||
@@ -143,7 +143,7 @@ $(ROOT): $(SRCDIR)/src/binfile
|
||||
mv $$file $$path; \
|
||||
done
|
||||
find $(ROOT) -type d -empty -delete && \
|
||||
cd $(DEV) && make -f ../Makefile.krb5-dev && mv *.snap ../
|
||||
cd $(DEV) && make -f ../Makefile.krb5-dev && mv *.slp ../
|
||||
|
||||
test: $(ROOT)
|
||||
@cd $(SRCDIR)/src; \
|
||||
@@ -152,7 +152,7 @@ test: $(ROOT)
|
||||
clean:
|
||||
@rm -rvf $(ROOT) \
|
||||
$(DEV) \
|
||||
$(SNAPINFO) \
|
||||
$(SLINFO) \
|
||||
$(MANIFEST) \
|
||||
$(FILES) \
|
||||
$(SRCDIR)
|
||||
|
||||
@@ -13,4 +13,4 @@ REPO = dev
|
||||
BRIEF = Development files for krb5
|
||||
DESC = Development files for krb5
|
||||
|
||||
include /usr/share/snap/Makefile.snaplinux
|
||||
include /usr/share/sl/Makefile.snaplinux
|
||||
|
||||
Reference in New Issue
Block a user