commit 566eb03a8b3716e63cde0b66f2692d7c4277f8c6 Author: Jay Larson Date: Tue Jul 10 18:37:01 2018 -0500 First check in diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..eccfecc --- /dev/null +++ b/Makefile @@ -0,0 +1,159 @@ +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation here: +# (http://www.gnu.org/licenses/gpl-2.0.html) +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# Some, but not all of variables are required. The following list +# describes the required variables: +# +# * URL: The main website of the upstream project +# * REPO: The location of the package on the source pacakge +# 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 +# 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 +# configuration files, file permissions, etc. +# * ARCHIVE: The default commands that set this variable should +# work in most cases, but in some cases it may need +# to be modified. This variable should contain the +# path to the source of the package (./SRC/filename) +# * TYPE: This is probably not really needed due to the +# ability of gnu tar to figure it out on its own. +# Should probably be removed at some point. +# * SRCDIR: This is the name of the source directory after the +# package source is extracted. The default command +# should in most cases set this automatically. +# * 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. +# The default command here should work in many cases, +# but certain packages may need to use a different +# method. +# +# Variables that aren't required: +# +# * ARCH: This should be populated for packages which contain +# compiled binaries. If it is not populated the ARCH +# will be set to 'noarch'. +# * DEPENDS: If any other packages are required for this package +# to function then they need to be listed here, +# preferably in alphabetical order. +# * BUILDDEPS: Any package beyond packages from the core repo +# need to be listed here. The idea is that we +# can automate building and testing packages +# from clean core systems. The core repo is +# intended to include only the base minimum +# packages which provide a functional system. +# * SRCPKG: By default this is populated automatically with +# the name of the package (current directory). If +# the source package is used to generate multiple +# packages then this variable should contain the +# name of the git repo that tracks the source. +# * DESC: This is to be used to provide a longer description +# of the package. + +export SRCPKG = krb5 +export DEPENDS = +export ARCH = x86_64 +export URL = https://web.mit.edu/kerberos/ +BUILDDEPS = +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 = 0 + +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) + +include /usr/share/snap/Makefile.snaplinux + +DEV := $(PWD)/krb5-dev +DEVROOT := $(DEV)/ROOT + +$(SRCDIR)/src/configure: $(ARCHIVE) + @if [ '$(TYPE)' == 'application/x-bzip2' ]; then \ + tar -jxf $(ARCHIVE); \ + elif [ '$(TYPE)' == 'application/x-gzip' ]; then \ + tar -zxf $(ARCHIVE); \ + elif [ '$(TYPE)' == 'application/x-tar' ]; then \ + tar -xf $(ARCHIVE); \ + elif [ '$(TYPE)' == 'application/x-xz' ]; then \ + tar -xf $(ARCHIVE); \ + else \ + echo 'Unable to determine archive type'; \ + exit 1; \ + fi + @touch $(SRCDIR)/src/configure + +$(SRCDIR)/src/config.log: $(SRCDIR)/src/configure + @cd $(SRCDIR) && \ + for patch in `find $(PATCHDIR) -name \*.patch|sort`; do \ + patch --verbose -Np1 -i $$patch; \ + done + @cd $(SRCDIR)/src; \ + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var/lib \ + --with-system-et \ + --with-system-ss \ + --with-system-verto=no \ + --enable-dns-for-realm \ + --build=x86_64-snap-linux-gnu \ + --host=x86_64-snap-linux-gnu \ + --target=x86_64-snap-linux-gnu + +# binfile should be replaced with a file generated by the +# make process. It won't really break anything if not +# set to a valid file, but the source make process will +# be re-executed even if it isn't necessary + +$(SRCDIR)/src/binfile: $(SRCDIR)/src/config.log + @cd $(SRCDIR)/src && make + +$(ROOT): $(SRCDIR)/src/binfile + @if [ -d $(ROOT) ]; then \ + touch $(ROOT); \ + else \ + mkdir -v $(ROOT); \ + fi + + @cd $(SRCDIR)/src && make install DESTDIR=$(ROOT) && \ + install -v -d $(DEV)/SNAP && \ + install -v -d $(DEVROOT) && \ + for file in `find $(ROOT)| \ + egrep 'pkgconfig\/|\.a$$|\.h$$|\.la$$|\.pc$$'`; do \ + path=`dirname $$file|sed "s[$(ROOT)[$(DEVROOT)["`; \ + mkdir -p $$path; \ + mv $$file $$path; \ + done + find $(ROOT) -type d -empty -delete && \ + cd $(DEV) && make -f ../Makefile.krb5-dev && mv *.snap ../ + +test: $(ROOT) + @cd $(SRCDIR)/src; \ + make check + +clean: + @rm -rvf $(ROOT) \ + $(DEV) \ + $(SNAPINFO) \ + $(MANIFEST) \ + $(FILES) \ + $(SRCDIR) + diff --git a/Makefile.krb5-dev b/Makefile.krb5-dev new file mode 100644 index 0000000..153ec13 --- /dev/null +++ b/Makefile.krb5-dev @@ -0,0 +1,16 @@ +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation here: +# (http://www.gnu.org/licenses/gpl-2.0.html) +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +DEPENDS = krb5 +REPO = dev +BRIEF = Development files for krb5 +DESC = Development files for krb5 + +include /usr/share/snap/Makefile.snaplinux diff --git a/SNAP/README b/SNAP/README new file mode 100644 index 0000000..cb756b1 --- /dev/null +++ b/SNAP/README @@ -0,0 +1,5 @@ +This is the directory where the manifest, snapinfo, +and files.tar.gz files will be created. It is also +where the usher file should be placed if it is +required by the package. Any other files that need +to be included could also be placed here. diff --git a/SNAP/files.tar.gz b/SNAP/files.tar.gz new file mode 100644 index 0000000..cea22c5 Binary files /dev/null and b/SNAP/files.tar.gz differ diff --git a/SNAP/manifest b/SNAP/manifest new file mode 100644 index 0000000..7b43497 --- /dev/null +++ b/SNAP/manifest @@ -0,0 +1,115 @@ +0b8a62614bd9a3eda05a839dd62c406d569dab4d -rw-r--r-- usr/share/man/man8/sserver.8.gz +50dc8c414dd94740b8ee0e195c90491b09186b59 -rw-r--r-- usr/share/man/man8/krb5kdc.8.gz +86b2684d977e5993c3d709319409c7ae110729f0 -rw-r--r-- usr/share/man/man8/kproplog.8.gz +cd01320b7b1df8bd434961ac32bed74589ba97c7 -rw-r--r-- usr/share/man/man8/kpropd.8.gz +a70aa346a6bdf522da01b3ce01faad134eff84bf -rw-r--r-- usr/share/man/man8/kprop.8.gz +41344a14f93b791bac3a157aa8e8f5b02b4d425a -rw-r--r-- usr/share/man/man8/kdb5_util.8.gz +2d8270d12fdcdb708a2e4d84b9747cd5db48ea6b -rw-r--r-- usr/share/man/man8/kdb5_ldap_util.8.gz +2f8116b275c09a24cd2cb460256f6d816e1dafec -rw-r--r-- usr/share/man/man8/kadmind.8.gz +d66344740ce96dbc1c7041f1c6aff60f6d011f77 -rw-r--r-- usr/share/man/man8/kadmin.local.8.gz +________________________________________ drwxr-xr-x usr/share/man/man8 +accf0683ef924c1fc66780022051d67c93dbd419 -rw-r--r-- usr/share/man/man5/krb5.conf.5.gz +f41701c396ea0407ee5a8733d47c9e9cffe6f0ad -rw-r--r-- usr/share/man/man5/kdc.conf.5.gz +832e8e7bfd7d0746ae361808df1e7f3257483e00 -rw-r--r-- usr/share/man/man5/kadm5.acl.5.gz +17fb04e0e53af918f2d235f7fa3c4861cd1eebad -rw-r--r-- usr/share/man/man5/k5login.5.gz +2ceb0db6a62f0ae0300baf72ff73cc18922c1cbd -rw-r--r-- usr/share/man/man5/k5identity.5.gz +4b3b3d600bb7ac4c9efc8908dbeabc08827677e5 -rw-r--r-- usr/share/man/man5/.k5login.5.gz +538c51a68c5757dd3c0f8f8d8a50c207da870b7d -rw-r--r-- usr/share/man/man5/.k5identity.5.gz +________________________________________ drwxr-xr-x usr/share/man/man5 +e829e791a67925410b889b933011f9320fcb793f -rw-r--r-- usr/share/man/man1/sclient.1.gz +f532751fafc86573b8e40d6b55a7e197f442a4a6 -rw-r--r-- usr/share/man/man1/kvno.1.gz +81b0b0691bc4545f6711d9dff1f40d853c95ee20 -rw-r--r-- usr/share/man/man1/ktutil.1.gz +9a434d800497f2343b7062071fb3cf714c35bcc7 -rw-r--r-- usr/share/man/man1/kswitch.1.gz +89c4231de07669ce7d8c2d2e246f092a714d8237 -rw-r--r-- usr/share/man/man1/ksu.1.gz +373824bee3521ebabbba3d9acf7c79a5a3c9d843 -rw-r--r-- usr/share/man/man1/krb5-config.1.gz +2e5e461d1d492591bac9b78f0bc4e0fb1fb46137 -rw-r--r-- usr/share/man/man1/kpasswd.1.gz +7896f769c629ac30c0feb9b3eac3a18926ae795a -rw-r--r-- usr/share/man/man1/klist.1.gz +e8f13e1847c7ad1f4b962381f67da180d41cf14f -rw-r--r-- usr/share/man/man1/kinit.1.gz +d3c710a3e6f7b883d2060ce60fd74c73d5d945f5 -rw-r--r-- usr/share/man/man1/kdestroy.1.gz +4ac2bb0efb693d4eb7d17f2fadccc61546c13add -rw-r--r-- usr/share/man/man1/kadmin.1.gz +d12ae96133533a92dd63b7e031adf3d8913bbdc6 -rw-r--r-- usr/share/man/man1/k5srvutil.1.gz +________________________________________ drwxr-xr-x usr/share/man/man1 +________________________________________ drwxr-xr-x usr/share/man +56d01a6e5352be189a096cb28fa93ebcbc0a1fac -rw-r--r-- usr/share/locale/en_US/LC_MESSAGES/mit-krb5.mo +________________________________________ drwxr-xr-x usr/share/locale/en_US/LC_MESSAGES +________________________________________ drwxr-xr-x usr/share/locale/en_US +________________________________________ drwxr-xr-x usr/share/locale +303e0b1ceecd4be5794b8e23b272b80141f9d417 -rw-r--r-- usr/share/examples/krb5/services.append +694c269818ad3e4fd269d106d66878b580a180a8 -rw-r--r-- usr/share/examples/krb5/krb5.conf +7ceb9bedc0004f4e4c806f769391a7455875693d -rw-r--r-- usr/share/examples/krb5/kdc.conf +________________________________________ drwxr-xr-x usr/share/examples/krb5 +________________________________________ drwxr-xr-x usr/share/examples +________________________________________ drwxr-xr-x usr/share +1f30279abdf342cd7e34fa68487941dc707824c6 -rwxr-xr-x usr/sbin/uuserver +a5a99aef6a8140e7d2c24e81bdf0bf3f421c5aec -rwxr-xr-x usr/sbin/sserver +caaf77fdc31a50e5edee5729823d638933499729 -rwxr-xr-x usr/sbin/sim_server +70accca5f613e6cb2d972d91d0484e352bd0d421 -rwxr-xr-x usr/sbin/krb5kdc +247496722621ab51de754860fce3353e412548af -rwxr-xr-x usr/sbin/krb5-send-pr +7924ec68fca00f4b797bdf9fd0cf446c3cfba7be -rwxr-xr-x usr/sbin/kproplog +dda38da87414d1209510e7628da8debc9259e662 -rwxr-xr-x usr/sbin/kpropd +1c66817be85d37d6c17b7bbbe3ea58130ddfaee2 -rwxr-xr-x usr/sbin/kprop +33a99dded628dd8ab9158a4af3fe8b55a2e43b72 -rwxr-xr-x usr/sbin/kdb5_util +3481348b40f32c4224227953f66a8c60a8906e28 -rwxr-xr-x usr/sbin/kadmind +0f9cc7d4b64a707c87a6c32448e2a59a1a15bc6e -rwxr-xr-x usr/sbin/kadmin.local +8837a3587858d2560a9c1831cb72cd5d2a5fcbd8 -rwxr-xr-x usr/sbin/gss-server +________________________________________ drwxr-xr-x usr/sbin +ee2c4d51b93421dc31aa1dbbbcfd9af7980a16d1 -rw-r--r-- usr/lib/libverto.so.0.0 +ee2c4d51b93421dc31aa1dbbbcfd9af7980a16d1 lrwxrwxrwx usr/lib/libverto.so.0 +ee2c4d51b93421dc31aa1dbbbcfd9af7980a16d1 lrwxrwxrwx usr/lib/libverto.so +3dc061de479dcb1980d831a49dab8f2bf257f111 -rw-r--r-- usr/lib/libkrb5support.so.0.1 +3dc061de479dcb1980d831a49dab8f2bf257f111 lrwxrwxrwx usr/lib/libkrb5support.so.0 +3dc061de479dcb1980d831a49dab8f2bf257f111 lrwxrwxrwx usr/lib/libkrb5support.so +9ce1a6ab5d08449309adbdf021ea8b81bafa752a -rw-r--r-- usr/lib/libkrb5.so.3.3 +9ce1a6ab5d08449309adbdf021ea8b81bafa752a lrwxrwxrwx usr/lib/libkrb5.so.3 +9ce1a6ab5d08449309adbdf021ea8b81bafa752a lrwxrwxrwx usr/lib/libkrb5.so +50b9a6c5907607b5c4b01a653890111907f40e86 -rw-r--r-- usr/lib/libkrad.so.0.0 +50b9a6c5907607b5c4b01a653890111907f40e86 lrwxrwxrwx usr/lib/libkrad.so.0 +50b9a6c5907607b5c4b01a653890111907f40e86 lrwxrwxrwx usr/lib/libkrad.so +cfd57c5df970eac2062e874580bfaaad51ff5cfa -rw-r--r-- usr/lib/libkdb5.so.8.0 +cfd57c5df970eac2062e874580bfaaad51ff5cfa lrwxrwxrwx usr/lib/libkdb5.so.8 +cfd57c5df970eac2062e874580bfaaad51ff5cfa lrwxrwxrwx usr/lib/libkdb5.so +1488f4378a2bf5d831912b2c97855b48c0b5180b -rw-r--r-- usr/lib/libkadm5srv_mit.so.10.0 +1488f4378a2bf5d831912b2c97855b48c0b5180b lrwxrwxrwx usr/lib/libkadm5srv_mit.so.10 +1488f4378a2bf5d831912b2c97855b48c0b5180b lrwxrwxrwx usr/lib/libkadm5srv_mit.so +1488f4378a2bf5d831912b2c97855b48c0b5180b lrwxrwxrwx usr/lib/libkadm5srv.so +3f3d8c2cd0099ccf187b270fae0a5709b429c4e6 -rw-r--r-- usr/lib/libkadm5clnt_mit.so.10.0 +3f3d8c2cd0099ccf187b270fae0a5709b429c4e6 lrwxrwxrwx usr/lib/libkadm5clnt_mit.so.10 +3f3d8c2cd0099ccf187b270fae0a5709b429c4e6 lrwxrwxrwx usr/lib/libkadm5clnt_mit.so +3f3d8c2cd0099ccf187b270fae0a5709b429c4e6 lrwxrwxrwx usr/lib/libkadm5clnt.so +57885416f27b1696da5def3bff8d00f2690e52d1 -rw-r--r-- usr/lib/libk5crypto.so.3.1 +57885416f27b1696da5def3bff8d00f2690e52d1 lrwxrwxrwx usr/lib/libk5crypto.so.3 +57885416f27b1696da5def3bff8d00f2690e52d1 lrwxrwxrwx usr/lib/libk5crypto.so +5f3178390c77bf0f53108e6d61dd653f02753d22 -rw-r--r-- usr/lib/libgssrpc.so.4.2 +5f3178390c77bf0f53108e6d61dd653f02753d22 lrwxrwxrwx usr/lib/libgssrpc.so.4 +5f3178390c77bf0f53108e6d61dd653f02753d22 lrwxrwxrwx usr/lib/libgssrpc.so +c217a520336a28ec52a7bee4b5ab54fd65352074 -rw-r--r-- usr/lib/libgssapi_krb5.so.2.2 +c217a520336a28ec52a7bee4b5ab54fd65352074 lrwxrwxrwx usr/lib/libgssapi_krb5.so.2 +c217a520336a28ec52a7bee4b5ab54fd65352074 lrwxrwxrwx usr/lib/libgssapi_krb5.so +b69188fea52951287e50e4b055648a0963e433df -rw-r--r-- usr/lib/krb5/plugins/tls/k5tls.so +________________________________________ drwxr-xr-x usr/lib/krb5/plugins/tls +f0ef651e068dd3f7d3019759095d90919d76f778 -rw-r--r-- usr/lib/krb5/plugins/preauth/test.so +61959de845c13e012f0ee4b6cebf4a6e97d6218b -rw-r--r-- usr/lib/krb5/plugins/preauth/pkinit.so +620bb0f2f4a420088fd98d6f2275f27b74d4c978 -rw-r--r-- usr/lib/krb5/plugins/preauth/otp.so +________________________________________ drwxr-xr-x usr/lib/krb5/plugins/preauth +24194838c96936517c75561940c66ab62964e2f7 -rw-r--r-- usr/lib/krb5/plugins/kdb/db2.so +________________________________________ drwxr-xr-x usr/lib/krb5/plugins/kdb +________________________________________ drwxr-xr-x usr/lib/krb5/plugins +________________________________________ drwxr-xr-x usr/lib/krb5 +________________________________________ drwxr-xr-x usr/lib +3e0d9fa0f4d943e784d25dfa4157432ef31bcd23 -rwxr-xr-x usr/bin/uuclient +d703fbe4b25833f7c909a2eb351ab454915bf97f -rwxr-xr-x usr/bin/sim_client +c4539e42be88d2845584ab5d0186479065125946 -rwxr-xr-x usr/bin/sclient +ab82b31ac9385ae603d48e3527f34fe2718ea810 -rwxr-xr-x usr/bin/kvno +48f97bd78da05118e9aadeb511f2bd78eb1763d8 -rwxr-xr-x usr/bin/ktutil +8c903c4f4e5b3d1f330d42dcfafa05e948124284 -rwxr-xr-x usr/bin/kswitch +2955bcfc31e336fe94c07c1c1977970142ddfcd1 -rwsr-xr-x usr/bin/ksu +fa54c93edc796fa80a2f38b27212bd834f009824 -rwxr-xr-x usr/bin/krb5-config +a6669c7282bd2d46af49bffd21993a48600bef15 -rwxr-xr-x usr/bin/kpasswd +731be55f304aa35daf8bc0e053af13cd16e970e4 -rwxr-xr-x usr/bin/klist +f5334dbfa588ba86fff014bf7f812b6886199ddb -rwxr-xr-x usr/bin/kinit +06b3c37487d6e6e766fda2b18671e4c911bdd719 -rwxr-xr-x usr/bin/kdestroy +7f36e33389799ae2713c1053697b6b7476196daa -rwxr-xr-x usr/bin/kadmin +67c9b21eb4984d7e09d8b288b6c67c9b97165c1e -rwxr-xr-x usr/bin/k5srvutil +4493d49f37de6660bc7f31e252b0bcf495817918 -rwxr-xr-x usr/bin/gss-client +________________________________________ drwxr-xr-x usr/bin +________________________________________ drwxr-xr-x usr diff --git a/SNAP/snapinfo b/SNAP/snapinfo new file mode 100644 index 0000000..f57c365 --- /dev/null +++ b/SNAP/snapinfo @@ -0,0 +1,12 @@ +name: krb5 +version: 1.14-0 +arch: x86_64 +depends: +builddeps: +srcpkg: krb5 +bytes: 3430400 +url: https://web.mit.edu/kerberos/ +repo: main +sha256man: a9fa7bf44735b6aaafb75b2f7837dd7f2846b2428706bcfd54cc2f9a43531b7a +brief: Kerberos is a network authentication protocol +description: Kerberos is a network authentication protocol. It is designed to provide strong authentication for client/server applications by using secret-key cryptography. diff --git a/SRC/krb5-1.14.tar.gz b/SRC/krb5-1.14.tar.gz new file mode 100644 index 0000000..dcbd139 Binary files /dev/null and b/SRC/krb5-1.14.tar.gz differ diff --git a/SRC/krb5-1.14.tar.gz.asc b/SRC/krb5-1.14.tar.gz.asc new file mode 100644 index 0000000..5907fc2 --- /dev/null +++ b/SRC/krb5-1.14.tar.gz.asc @@ -0,0 +1,14 @@ +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1 + +iQGcBAABAgAGBQJWT4hUAAoJEKMvF/0AVcMFE44L/iuBH47TzpEn9RudgxMvxp7L +rREaBF/sIdMg0I8aUONtxw7nvh091s8SXus8UZiRYqPO+trB2pB52P1iQ4G9TBPX +IOkAEtxu/Sojfp2BxRd6NCBw+n90axNQDWogSN8U6XmK1szpiQz2KdaxfNTv5Lzm +Jtx/6p39DM7M72gkrFl8ZDEi2xKqyA1+fcCti3Q/Wdwx73HqWctHYNcjUtJH5bvN +GlTQq1PynPoHf8LqxVz6jquhuBgb2d2z8Q4hhQKlJF8x131vppeiWuDv3ExkcWKP +cvssUz8C1Ty7LF0ax0fwzQo22yEeTIHayvpbVidSiW8RUGUEiMzhaHcD3BTsQ5WF +X+l+xKqvZniB9Vs6KtbP4ErM6Rj+tNQJy8iMzEyDFTIuEFjK0497XGgBIp9FpgOl +6Rh9EXY66GUuU5FTnmGpmm3HxnhYWFDdj/vxj8DKTr5EmxAoc4j0fUp/ze4ZMZ02 +P14WS5B4DSfqZO+vaOKHmtmZH0J/ZS/8x7JIuz4cQA== +=xlir +-----END PGP SIGNATURE----- diff --git a/SRC/patches/README b/SRC/patches/README new file mode 100644 index 0000000..976577a --- /dev/null +++ b/SRC/patches/README @@ -0,0 +1,3 @@ +Place any patch files here and preface each with a +number indicating the order of execution. Patch +files are expected to use a .patch extension.