Radix cross Linux

The main Radix cross Linux repository contains the build scripts of packages, which have the most complete and common functionality for desktop machines

383 Commits   1 Branch   1 Tag
Index: 1.19.1/Makefile
===================================================================
--- 1.19.1/Makefile	(nonexistent)
+++ 1.19.1/Makefile	(revision 5)
@@ -0,0 +1,305 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_INTEL_PC32)
+COMPONENT_TARGETS += $(HARDWARE_INTEL_PC64)
+COMPONENT_TARGETS += $(HARDWARE_EBOX_3350DX2)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB2X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PP2E)
+COMPONENT_TARGETS += $(HARDWARE_NANOPI_NEO)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PP)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PL2)
+COMPONENT_TARGETS += $(HARDWARE_WECHIP_TX6)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_POIN2)
+COMPONENT_TARGETS += $(HARDWARE_RK3328_CC)
+COMPONENT_TARGETS += $(HARDWARE_KHADAS_EDGE)
+COMPONENT_TARGETS += $(HARDWARE_LEEZ_P710)
+COMPONENT_TARGETS += $(HARDWARE_M201)
+COMPONENT_TARGETS += $(HARDWARE_MXV)
+COMPONENT_TARGETS += $(HARDWARE_P201)
+COMPONENT_TARGETS += $(HARDWARE_NEXBOX_A95X)
+COMPONENT_TARGETS += $(HARDWARE_ODROID_C2)
+COMPONENT_TARGETS += $(HARDWARE_P212)
+COMPONENT_TARGETS += $(HARDWARE_KHADAS_VIM)
+COMPONENT_TARGETS += $(HARDWARE_Q201)
+COMPONENT_TARGETS += $(HARDWARE_ENYBOX_X2)
+COMPONENT_TARGETS += $(HARDWARE_KHADAS_VIM2)
+COMPONENT_TARGETS += $(HARDWARE_NIT6Q)
+COMPONENT_TARGETS += $(HARDWARE_OKMX6DL_C)
+COMPONENT_TARGETS += $(HARDWARE_OKMX6Q_C)
+COMPONENT_TARGETS += $(HARDWARE_BONE_BLACK)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_DRA7XXEVM)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+COMPONENT_TARGETS += $(HARDWARE_BAIKAL_T1)
+COMPONENT_TARGETS += $(HARDWARE_BAIKAL_M1)
+COMPONENT_TARGETS += $(HARDWARE_S824L)
+COMPONENT_TARGETS += $(HARDWARE_VESNIN)
+COMPONENT_TARGETS += $(HARDWARE_S824L_LSB)
+COMPONENT_TARGETS += $(HARDWARE_VESNIN_LSB)
+COMPONENT_TARGETS += $(HARDWARE_TL2WK2)
+COMPONENT_TARGETS += $(HARDWARE_TL2SV2)
+COMPONENT_TARGETS += $(HARDWARE_TL2WK2_LSB)
+COMPONENT_TARGETS += $(HARDWARE_TL2SV2_LSB)
+COMPONENT_TARGETS += $(HARDWARE_SIFIVE_U740)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/n/krb5
+
+REQUIRES           = app/e2fsprogs/1.46.2
+REQUIRES          += libs/keyutils/1.6.3
+REQUIRES          += net/openldap/2.4.58
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.19.1
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/n/krb5/krb5-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/krb5-$(version)
+src_dir_name       = krb5-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = net
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+KRB5_PKG_NAME                = krb5
+KRB5_PKG_VERSION             = 1.19.1
+KRB5_PKG_ARCH                = $(PKGARCH)
+KRB5_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+KRB5_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+KRB5_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+KRB5_PKG_SHORT_DESCRIPTION   = Network authentication protocol
+KRB5_PKG_URL                 = $(BUG_URL)
+KRB5_PKG_LICENSE             = custom
+KRB5_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(KRB5_PKG_NAME)-pkg-description
+KRB5_PKG_DESCRIPTION_FILE_IN = $(KRB5_PKG_NAME)-pkg-description.in
+KRB5_PKG_INSTALL_SCRIPT      = $(KRB5_PKG_NAME)-pkg-install.sh
+
+KRB5_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(KRB5_PKG_NAME)-package
+
+pkg_basename     = $(KRB5_PKG_NAME)-$(KRB5_PKG_VERSION)-$(KRB5_PKG_ARCH)-$(KRB5_PKG_DISTRO_NAME)-$(KRB5_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_certificate  = $(call cert-name,$(pkg_archive))
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../build-system/core.mk
+
+
+env_sysroot  = DESTDIR=$(KRB5_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var/kerberos
+extra_configure_switches += --runstatedir=/var/run
+
+extra_configure_switches += --enable-dns-for-realm
+extra_configure_switches += --with-ldap
+extra_configure_switches += --with-system-et
+extra_configure_switches += --with-system-ss
+extra_configure_switches += --enable-pkinit
+extra_configure_switches += --with-tls-impl=openssl
+extra_configure_switches += --with-system-verto=no
+extra_configure_switches += --with-prng-alg=os
+
+extra_configure_switches += --with-tcl=no
+
+ifeq ($(__ENABLE_STATIC__),yes)
+extra_configure_switches += --enable-static=yes
+else
+extra_configure_switches += --enable-static=no
+endif
+extra_configure_switches += --enable-shared=yes
+
+
+extra_cross_environment  = krb5_cv_attr_constructor_destructor='yes,yes'
+extra_cross_environment += ac_cv_func_regcomp=yes
+extra_cross_environment += ac_cv_printf_positional=yes
+extra_cross_environment += PTHREAD_CFLAGS='$(CFLAGS)'
+extra_cross_environment += PTHREAD_LIBS='-lpthread'
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(extra_cross_environment) ../$(src_dir_name)/src/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(KRB5_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@chmod 4755 $(KRB5_PKG)/usr/bin/ksu
+	# ======= Move library to /lib$(LIBSUFFIX) as it might be needed to mount /usr: =======
+	@mkdir $(KRB5_PKG)/lib$(LIBSUFFIX)
+	@( cd $(KRB5_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   for lib in libgssapi_krb5 libk5crypto libkrb5 libkrb5support ; do \
+	     mv $${lib}.so.?.* ../../lib$(LIBSUFFIX)       ; \
+	     ln -sf ../../lib$(LIBSUFFIX)/$${lib}.so.?.* . ; \
+	     cp -a $${lib}.so.? ../../lib$(LIBSUFFIX)      ; \
+	   done ; \
+	 )
+	# ======= Install init scripts: =======
+	@mkdir -p $(KRB5_PKG)/etc/rc.d
+	@cp -a $(CURDIR)/conf/rc.kadmind $(KRB5_PKG)/etc/rc.d/rc.kadmind.new
+	@cp -a $(CURDIR)/conf/rc.kpropd  $(KRB5_PKG)/etc/rc.d/rc.kpropd.new
+	@cp -a $(CURDIR)/conf/rc.krb5kdc $(KRB5_PKG)/etc/rc.d/rc.krb5kdc.new
+	@chmod 644 $(KRB5_PKG)/etc/rc.d/*
+	# ======= Install default options: =======
+	@mkdir -p $(KRB5_PKG)/etc/default
+	@cp -a $(CURDIR)/conf/kadmind $(KRB5_PKG)/etc/default/kadmind.new
+	@cp -a $(CURDIR)/conf/kpropd  $(KRB5_PKG)/etc/default/kpropd.new
+	@cp -a $(CURDIR)/conf/krb5kdc $(KRB5_PKG)/etc/default/krb5kdc.new
+	@chmod 644 $(KRB5_PKG)/etc/default/*
+	# ======= Install example config files: =======
+	@mkdir -p $(KRB5_PKG)/etc
+	@cp -a $(CURDIR)/conf/krb5.conf.example $(KRB5_PKG)/etc/krb5.conf.example
+	@chmod 644 $(KRB5_PKG)/etc/krb5.conf.example
+	@mkdir -p $(KRB5_PKG)/var/kerberos/krb5kdc
+	@cp -a $(CURDIR)/conf/kdc.conf.example $(KRB5_PKG)/var/kerberos/krb5kdc/kdc.conf.example
+	@chmod 644 $(KRB5_PKG)/var/kerberos/krb5kdc/kdc.conf.example
+	# ======= Move examples to the documentation directory: =======
+	@mkdir -p $(KRB5_PKG)/usr/share/doc/$(src_dir_name)/examples
+	@mv $(KRB5_PKG)/usr/share/examples/krb5/* $(KRB5_PKG)/usr/share/doc/$(src_dir_name)/examples
+	@rm -rf $(KRB5_PKG)/usr/share/examples
+	@rm -rf $(KRB5_PKG)/usr/share/man/cat{1,5,7,8}
+	# ======= Install Documentation =======
+	@( cd $(KRB5_PKG)/usr/share/man/man5 ; \
+	   for file in {.*,*}.5 ; do                           \
+	     ln=`head -n 1 $$file` ;                           \
+	     if [ "`echo $$ln | grep '^\.so '`" != "" ] ; then \
+	       origin=`echo $$ln | cut -f 2 -d ' '` ;          \
+	       origin=`basename $$origin` ;                    \
+	       rm -f $$file ;                                  \
+	       ln -sf $$origin $$file ;                        \
+	     fi ;                                              \
+	   done ;                                              \
+	 )
+	@( cd $(KRB5_PKG)/usr/share/man/man8 ; \
+	   rm -f kadmin.local.8 ; ln -sf ../man1/kadmin.1 kadmin.local.8 ; \
+	 )
+	@if [ -d $(KRB5_PKG)/usr/share/man ]; then \
+	  ( cd $(KRB5_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.* 2>/dev/null ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(KRB5_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/NOTICE \
+	       $(KRB5_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(KRB5_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a NOTICE README \
+	         $(KRB5_PKG)/usr/share/doc/$(src_dir_name) ; \
+	 )
+	# ======= remove toolchain path from target pkg-config *.pc files =======
+	@( cd $(KRB5_PKG)/usr/lib$(LIBSUFFIX)/pkgconfig ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" gssrpc.pc kadm-client.pc kadm-server.pc kdb.pc          \
+	                                    krb5-gssapi.pc krb5.pc mit-krb5-gssapi.pc mit-krb5.pc ; \
+	 )
+	# ======= remove toolchain path from target krb5-config script =======
+	@( cd $(KRB5_PKG)/usr/bin ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" krb5-config ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(KRB5_PKG))
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" gssrpc.pc kadm-client.pc kadm-server.pc kdb.pc          \
+	                                            krb5-gssapi.pc krb5.pc mit-krb5-gssapi.pc mit-krb5.pc ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" gssrpc.pc kadm-client.pc kadm-server.pc kdb.pc          \
+	                                              krb5-gssapi.pc krb5.pc mit-krb5-gssapi.pc mit-krb5.pc ; \
+	 )
+	# ======= tune krb5-config script to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/bin ; \
+	   sed -i "s,=/usr,=$(TARGET_DEST_DIR)/usr,g" krb5-config ; \
+	   sed -i "s,L/usr,L$(TARGET_DEST_DIR)/usr,g" krb5-config ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" krb5-config ; \
+	   sed -i "s,I/usr,I$(TARGET_DEST_DIR)/usr,g" krb5-config ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(KRB5_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+ifeq ($(__ENABLE_STATIC__),yes)
+	@( cd $(KRB5_PKG) ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null ; \
+	 )
+endif
+	@touch $@
+
+$(KRB5_PKG_DESCRIPTION_FILE): $(KRB5_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(KRB5_PKG_DESCRIPTION_FILE) $(KRB5_PKG_INSTALL_SCRIPT)
+	@cp $(KRB5_PKG_DESCRIPTION_FILE) $(KRB5_PKG)/.DESCRIPTION
+	@cp $(KRB5_PKG_INSTALL_SCRIPT) $(KRB5_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(KRB5_PKG)/.REQUIRES
+	@echo "pkgname=$(KRB5_PKG_NAME)"                            >  $(KRB5_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(KRB5_PKG_VERSION)"                          >> $(KRB5_PKG)/.PKGINFO ; \
+	 echo "arch=$(KRB5_PKG_ARCH)"                               >> $(KRB5_PKG)/.PKGINFO ; \
+	 echo "distroname=$(KRB5_PKG_DISTRO_NAME)"                  >> $(KRB5_PKG)/.PKGINFO ; \
+	 echo "distrover=$(KRB5_PKG_DISTRO_VERSION)"                >> $(KRB5_PKG)/.PKGINFO ; \
+	 echo "group=$(KRB5_PKG_GROUP)"                             >> $(KRB5_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(KRB5_PKG_SHORT_DESCRIPTION)\"" >> $(KRB5_PKG)/.PKGINFO ; \
+	 echo "url=$(KRB5_PKG_URL)"                                 >> $(KRB5_PKG)/.PKGINFO ; \
+	 echo "license=$(KRB5_PKG_LICENSE)"                         >> $(KRB5_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(KRB5_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: 1.19.1/PATCHES
===================================================================
Index: 1.19.1/conf/kadmind
===================================================================
--- 1.19.1/conf/kadmind	(nonexistent)
+++ 1.19.1/conf/kadmind	(revision 5)
@@ -0,0 +1,2 @@
+# To set additional options for kadmind, add them in the variable below:
+KADMIND_OPTIONS=""
Index: 1.19.1/conf/kdc.conf.example
===================================================================
--- 1.19.1/conf/kdc.conf.example	(nonexistent)
+++ 1.19.1/conf/kdc.conf.example	(revision 5)
@@ -0,0 +1,35 @@
+[kdcdefaults]
+    kdc_listen = 88
+    kdc_tcp_listen = 88
+
+[realms]
+    ATHENA.MIT.EDU = {
+        kadmind_port = 749
+        max_life = 12h 0m 0s
+        max_renewable_life = 7d 0h 0m 0s
+        master_key_type = aes256-cts-hmac-sha1-96
+        supported_enctypes = aes256-cts-hmac-sha1-96:normal aes128-cts-hmac-sha1-96:normal
+        database_module = openldap_ldapconf
+    }
+
+[logging]
+    kdc = FILE:/var/kerberos/krb5kdc/kdc.log
+    admin_server = FILE:/var/kerberos/krb5kdc/kadmin.log
+
+[dbdefaults]
+    ldap_kerberos_container_dn = cn=krbcontainer,dc=mit,dc=edu
+
+[dbmodules]
+    openldap_ldapconf = {
+        db_library = kldap
+        disable_last_success = true
+        ldap_kdc_dn = "cn=krbadmin,dc=mit,dc=edu"
+            # this object needs to have read rights on
+            # the realm container and principal subtrees
+        ldap_kadmind_dn = "cn=krbadmin,dc=mit,dc=edu"
+            # this object needs to have read and write rights on
+            # the realm container and principal subtrees
+        ldap_service_password_file = /etc/kerberos/service.keyfile
+        ldap_servers = ldaps://kerberos.mit.edu
+        ldap_conns_per_server = 5
+    }
Index: 1.19.1/conf/kpropd
===================================================================
--- 1.19.1/conf/kpropd	(nonexistent)
+++ 1.19.1/conf/kpropd	(revision 5)
@@ -0,0 +1,2 @@
+# To set additional options for kpropd, add them in the variable below:
+KPROPD_OPTIONS=""
Index: 1.19.1/conf/krb5.conf.example
===================================================================
--- 1.19.1/conf/krb5.conf.example	(nonexistent)
+++ 1.19.1/conf/krb5.conf.example	(revision 5)
@@ -0,0 +1,29 @@
+[libdefaults]
+    default_realm = ATHENA.MIT.EDU
+    dns_lookup_kdc = true
+    dns_lookup_realm = false
+
+[realms]
+    ATHENA.MIT.EDU = {
+        kdc = kerberos.mit.edu
+        kdc = kerberos-1.mit.edu
+        kdc = kerberos-2.mit.edu
+        admin_server = kerberos.mit.edu
+        master_kdc = kerberos.mit.edu
+    }
+    EXAMPLE.COM = {
+        kdc = kerberos.example.com
+        kdc = kerberos-1.example.com
+        admin_server = kerberos.example.com
+    }
+
+[domain_realm]
+    mit.edu = ATHENA.MIT.EDU
+
+[capaths]
+    ATHENA.MIT.EDU = {
+           EXAMPLE.COM = .
+    }
+    EXAMPLE.COM = {
+           ATHENA.MIT.EDU = .
+    }
Index: 1.19.1/conf/krb5kdc
===================================================================
--- 1.19.1/conf/krb5kdc	(nonexistent)
+++ 1.19.1/conf/krb5kdc	(revision 5)
@@ -0,0 +1,2 @@
+# To set additional options for krb5kdc, add them in the variable below:
+KRB5KDC_OPTIONS=""
Index: 1.19.1/conf/rc.kadmind
===================================================================
--- 1.19.1/conf/rc.kadmind	(nonexistent)
+++ 1.19.1/conf/rc.kadmind	(revision 5)
@@ -0,0 +1,40 @@
+#!/bin/sh
+# Start the Kerberos administration server. This typically runs on the
+# master Kerberos server, which stores the KDC database.
+
+# To change the default options, edit /etc/default/kadmind.
+if [ -r /etc/default/kadmind ]; then
+  . /etc/default/kadmind
+fi
+
+start_atd() {
+  if ! /usr/bin/pgrep --ns $$ --euid root -f "^/usr/sbin/kadmind" 1> /dev/null 2> /dev/null ; then
+    echo "Starting kadmind:  /usr/sbin/kadmind $KADMIND_OPTIONS"
+    /usr/sbin/kadmind $KADMIND_OPTIONS
+  fi
+}
+
+stop_atd() {
+  echo "Stopping kadmind."
+  /usr/bin/pkill --ns $$ --euid root -f "^/usr/sbin/kadmind" 2> /dev/null
+}
+
+restart_atd() {
+  stop_atd
+  sleep 1
+  start_atd
+}
+
+case "$1" in
+'start')
+  start_atd
+  ;;
+'stop')
+  stop_atd
+  ;;
+'restart')
+  restart_atd
+  ;;
+*)
+  echo "usage $0 start|stop|restart"
+esac
Index: 1.19.1/conf/rc.kpropd
===================================================================
--- 1.19.1/conf/rc.kpropd	(nonexistent)
+++ 1.19.1/conf/rc.kpropd	(revision 5)
@@ -0,0 +1,41 @@
+#!/bin/sh
+# Start the Kerberos V5 slave KDC update server. This runs on a slave
+# (secondary) KDC server. It allows the master Kerberos server to use
+# kprop(8) to propagate its database to the slave servers.
+
+# To change the default options, edit /etc/default/kpropd.
+if [ -r /etc/default/kpropd ]; then
+  . /etc/default/kpropd
+fi
+
+start_atd() {
+  if ! /usr/bin/pgrep --ns $$ --euid root -f "^/usr/sbin/kpropd" 1> /dev/null 2> /dev/null ; then
+    echo "Starting kpropd:  /usr/sbin/kpropd $KPROPD_OPTIONS"
+    /usr/sbin/kpropd $KPROPD_OPTIONS
+  fi
+}
+
+stop_atd() {
+  echo "Stopping kpropd."
+  /usr/bin/pkill --ns $$ --euid root -f "^/usr/sbin/kpropd" 2> /dev/null
+}
+
+restart_atd() {
+  stop_atd
+  sleep 1
+  start_atd
+}
+
+case "$1" in
+'start')
+  start_atd
+  ;;
+'stop')
+  stop_atd
+  ;;
+'restart')
+  restart_atd
+  ;;
+*)
+  echo "usage $0 start|stop|restart"
+esac
Index: 1.19.1/conf/rc.krb5kdc
===================================================================
--- 1.19.1/conf/rc.krb5kdc	(nonexistent)
+++ 1.19.1/conf/rc.krb5kdc	(revision 5)
@@ -0,0 +1,41 @@
+#!/bin/sh
+# Start krb5kdc, which is the Kerberos version 5 Authentication Service
+# and Key Distribution Center (AS/KDC). This needs to run first on both
+# master and secondary KDCs.
+
+# To change the default options, edit /etc/default/krb5kdc.
+if [ -r /etc/default/krb5kdc ]; then
+  . /etc/default/krb5kdc
+fi
+
+start_atd() {
+  if ! /usr/bin/pgrep --ns $$ --euid root -f "^/usr/sbin/krb5kdc" 1> /dev/null 2> /dev/null ; then
+    echo "Starting krb5kdc:  /usr/sbin/krb5kdc $KRB5KDC_OPTIONS"
+    /usr/sbin/krb5kdc $KRB5KDC_OPTIONS
+  fi
+}
+
+stop_atd() {
+  echo "Stopping krb5kdc."
+  /usr/bin/pkill --ns $$ --euid root -f "^/usr/sbin/krb5kdc" 2> /dev/null
+}
+
+restart_atd() {
+  stop_atd
+  sleep 1
+  start_atd
+}
+
+case "$1" in
+'start')
+  start_atd
+  ;;
+'stop')
+  stop_atd
+  ;;
+'restart')
+  restart_atd
+  ;;
+*)
+  echo "usage $0 start|stop|restart"
+esac
Index: 1.19.1/conf
===================================================================
--- 1.19.1/conf	(nonexistent)
+++ 1.19.1/conf	(revision 5)

Property changes on: 1.19.1/conf
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: 1.19.1/krb5-pkg-description.in
===================================================================
--- 1.19.1/krb5-pkg-description.in	(nonexistent)
+++ 1.19.1/krb5-pkg-description.in	(revision 5)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+    |-----handy-ruler------------------------------------------------------|
+krb5: krb5 @VERSION@ (Network authentication protocol)
+krb5:
+krb5: Kerberos is a network authentication protocol. It is designed to
+krb5: provide strong authentication for client/server applications by
+krb5: using secret-key cryptography.
+krb5:
+krb5:
+krb5: Homepage: http://web.mit.edu/kerberos/
+krb5:
+krb5:
+krb5:
Index: 1.19.1/krb5-pkg-install.sh
===================================================================
--- 1.19.1/krb5-pkg-install.sh	(nonexistent)
+++ 1.19.1/krb5-pkg-install.sh	(revision 5)
@@ -0,0 +1,69 @@
+#!/bin/sh
+
+# Preserve new files
+install_file() {
+  NEW="$1"
+  OLD="`dirname $NEW`/`basename $NEW .new`"
+  # If there's no file by that name, mv it over:
+  if [ ! -r $OLD ]; then
+    mv $NEW $OLD
+  elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+    rm $NEW
+  fi
+  # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+preserve_perms() {
+  NEW="$1"
+  OLD="$(dirname $NEW)/$(basename $NEW .new)"
+  if [ -e $OLD ]; then
+    cp -a $OLD ${NEW}.incoming
+    cat $NEW > ${NEW}.incoming
+    mv ${NEW}.incoming $NEW
+  fi
+  install_file $NEW
+}
+
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  preserve_perms etc/rc.d/rc.kadmind.new
+  preserve_perms etc/rc.d/rc.kpropd.new
+  preserve_perms etc/rc.d/rc.krb5kdc.new
+  install_file etc/default/kadmind.new
+  install_file etc/default/kpropd.new
+  install_file etc/default/krb5kdc.new
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: 1.19.1/krb5-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: 1.19.1
===================================================================
--- 1.19.1	(nonexistent)
+++ 1.19.1	(revision 5)

Property changes on: 1.19.1
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: 1.19.1-ppc32/Makefile
===================================================================
--- 1.19.1-ppc32/Makefile	(nonexistent)
+++ 1.19.1-ppc32/Makefile	(revision 5)
@@ -0,0 +1,216 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_S824L)
+COMPONENT_TARGETS += $(HARDWARE_VESNIN)
+COMPONENT_TARGETS += $(HARDWARE_TL2WK2)
+COMPONENT_TARGETS += $(HARDWARE_TL2SV2)
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+CREATE_PPC32_PACKAGE = true
+
+
+include ../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/n/krb5
+
+REQUIRES           = net/krb5/1.19.1
+REQUIRES          += app/e2fsprogs/1.46.2-ppc32
+REQUIRES          += libs/keyutils/1.6.3-ppc32
+REQUIRES          += net/openldap/2.4.58-ppc32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.19.1
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/n/krb5/krb5-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/krb5-$(version)
+src_dir_name       = krb5-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = net
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+KRB5_32_PKG_NAME                = krb5-x32
+KRB5_32_PKG_VERSION             = 1.19.1
+KRB5_32_PKG_ARCH                = $(PKGARCH)
+KRB5_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+KRB5_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+KRB5_32_PKG_GROUP               = $(PKG_GROUP)
+###                              |---handy-ruler-------------------------------|
+KRB5_32_PKG_SHORT_DESCRIPTION   = Network authentication protocol
+KRB5_32_PKG_URL                 = $(BUG_URL)
+KRB5_32_PKG_LICENSE             = custom
+KRB5_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(KRB5_32_PKG_NAME)-pkg-description
+KRB5_32_PKG_DESCRIPTION_FILE_IN = $(KRB5_32_PKG_NAME)-pkg-description.in
+KRB5_32_PKG_INSTALL_SCRIPT      = $(KRB5_32_PKG_NAME)-pkg-install.sh
+
+KRB5_32_PKG      = $(CURDIR)/$(TARGET_BUILD_DIR)/$(KRB5_32_PKG_NAME)-package
+
+pkg_basename     = $(KRB5_32_PKG_NAME)-$(KRB5_32_PKG_VERSION)-$(KRB5_32_PKG_ARCH)-$(KRB5_32_PKG_DISTRO_NAME)-$(KRB5_32_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_certificate  = $(call cert-name,$(pkg_archive))
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../build-system/core.mk
+
+
+env_sysroot  = DESTDIR=$(KRB5_32_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(MULTILIB_PPC32_SUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var
+extra_configure_switches += --runstatedir=/var/run
+
+extra_configure_switches += --bindir=/usr/bin/32
+extra_configure_switches += --sbindir=/usr/sbin/32
+
+extra_configure_switches += --enable-dns-for-realm
+extra_configure_switches += --with-ldap
+extra_configure_switches += --with-system-et
+extra_configure_switches += --with-system-ss
+extra_configure_switches += --enable-pkinit
+extra_configure_switches += --with-tls-impl=openssl
+extra_configure_switches += --with-system-verto=no
+extra_configure_switches += --with-prng-alg=os
+
+extra_configure_switches += --with-tcl=no
+
+ifeq ($(__ENABLE_STATIC__),yes)
+extra_configure_switches += --enable-static=yes
+else
+extra_configure_switches += --enable-static=no
+endif
+extra_configure_switches += --enable-shared=yes
+
+
+extra_cross_environment  = krb5_cv_attr_constructor_destructor='yes,yes'
+extra_cross_environment += ac_cv_func_regcomp=yes
+extra_cross_environment += ac_cv_printf_positional=yes
+extra_cross_environment += PTHREAD_CFLAGS='$(CFLAGS)'
+extra_cross_environment += PTHREAD_LIBS='-lpthread'
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(extra_cross_environment) ../$(src_dir_name)/src/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET32)          \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(KRB5_32_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Move library to /lib$(MULTILIB_PPC32_SUFFIX) as it might be needed to mount /usr: =======
+	@mkdir $(KRB5_32_PKG)/lib$(MULTILIB_PPC32_SUFFIX)
+	@( cd $(KRB5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX) ; \
+	   for lib in libgssapi_krb5 libk5crypto libkrb5 libkrb5support ; do \
+	     mv $${lib}.so.?.* ../../lib$(MULTILIB_PPC32_SUFFIX)       ; \
+	     ln -sf ../../lib$(MULTILIB_PPC32_SUFFIX)/$${lib}.so.?.* . ; \
+	     cp -a $${lib}.so.? ../../lib$(MULTILIB_PPC32_SUFFIX)      ; \
+	   done ; \
+	 )
+	@rm -rf $(KRB5_32_PKG)/usr/{include,sbin,share}
+	@rm -rf $(KRB5_32_PKG)/var
+	@( cd $(KRB5_32_PKG)/usr/bin/32 ; \
+	   for file in `ls --hide=krb5-config` ; do \
+	     rm -f $${file} ; \
+	   done ; \
+	 )
+	# ======= remove toolchain path from target pkg-config *.pc files =======
+	@( cd $(KRB5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/pkgconfig ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" gssrpc.pc kadm-client.pc kadm-server.pc kdb.pc          \
+	                                    krb5-gssapi.pc krb5.pc mit-krb5-gssapi.pc mit-krb5.pc ; \
+	 )
+	# ======= remove toolchain path from target krb5-config script =======
+	@( cd $(KRB5_32_PKG)/usr/bin/32 ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" krb5-config ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(KRB5_32_PKG))
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" gssrpc.pc kadm-client.pc kadm-server.pc kdb.pc          \
+	                                            krb5-gssapi.pc krb5.pc mit-krb5-gssapi.pc mit-krb5.pc ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" gssrpc.pc kadm-client.pc kadm-server.pc kdb.pc          \
+	                                              krb5-gssapi.pc krb5.pc mit-krb5-gssapi.pc mit-krb5.pc ; \
+	 )
+	# ======= tune krb5-config script to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/bin/32 ; \
+	   sed -i "s,=/usr,=$(TARGET_DEST_DIR)/usr,g" krb5-config ; \
+	   sed -i "s,L/usr,L$(TARGET_DEST_DIR)/usr,g" krb5-config ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" krb5-config ; \
+	   sed -i "s,I/usr,I$(TARGET_DEST_DIR)/usr,g" krb5-config ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(KRB5_32_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+ifeq ($(__ENABLE_STATIC__),yes)
+	@( cd $(KRB5_32_PKG) ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null ; \
+	 )
+endif
+	@touch $@
+
+$(KRB5_32_PKG_DESCRIPTION_FILE): $(KRB5_32_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(KRB5_32_PKG_DESCRIPTION_FILE) $(KRB5_32_PKG_INSTALL_SCRIPT)
+	@cp $(KRB5_32_PKG_DESCRIPTION_FILE) $(KRB5_32_PKG)/.DESCRIPTION
+	@cp $(KRB5_32_PKG_INSTALL_SCRIPT) $(KRB5_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(KRB5_32_PKG)/.REQUIRES
+	@echo "pkgname=$(KRB5_32_PKG_NAME)"                            >  $(KRB5_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(KRB5_32_PKG_VERSION)"                          >> $(KRB5_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(KRB5_32_PKG_ARCH)"                               >> $(KRB5_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(KRB5_32_PKG_DISTRO_NAME)"                  >> $(KRB5_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(KRB5_32_PKG_DISTRO_VERSION)"                >> $(KRB5_32_PKG)/.PKGINFO ; \
+	 echo "group=$(KRB5_32_PKG_GROUP)"                             >> $(KRB5_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(KRB5_32_PKG_SHORT_DESCRIPTION)\"" >> $(KRB5_32_PKG)/.PKGINFO ; \
+	 echo "url=$(KRB5_32_PKG_URL)"                                 >> $(KRB5_32_PKG)/.PKGINFO ; \
+	 echo "license=$(KRB5_32_PKG_LICENSE)"                         >> $(KRB5_32_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(KRB5_32_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: 1.19.1-ppc32/PATCHES
===================================================================
Index: 1.19.1-ppc32/krb5-x32-pkg-description.in
===================================================================
--- 1.19.1-ppc32/krb5-x32-pkg-description.in	(nonexistent)
+++ 1.19.1-ppc32/krb5-x32-pkg-description.in	(revision 5)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+        |-----handy-ruler------------------------------------------------------|
+krb5-x32: krb5-x32 @VERSION@ (Network authentication protocol)
+krb5-x32:
+krb5-x32: Kerberos is a network authentication protocol. It is designed to
+krb5-x32: provide strong authentication for client/server applications by
+krb5-x32: using secret-key cryptography.
+krb5-x32:
+krb5-x32:
+krb5-x32: Homepage: http://web.mit.edu/kerberos/
+krb5-x32:
+krb5-x32:
+krb5-x32:
Index: 1.19.1-ppc32/krb5-x32-pkg-install.sh
===================================================================
--- 1.19.1-ppc32/krb5-x32-pkg-install.sh	(nonexistent)
+++ 1.19.1-ppc32/krb5-x32-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: 1.19.1-ppc32/krb5-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: 1.19.1-ppc32
===================================================================
--- 1.19.1-ppc32	(nonexistent)
+++ 1.19.1-ppc32	(revision 5)

Property changes on: 1.19.1-ppc32
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: 1.19.1-x86_32/Makefile
===================================================================
--- 1.19.1-x86_32/Makefile	(nonexistent)
+++ 1.19.1-x86_32/Makefile	(revision 5)
@@ -0,0 +1,213 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_INTEL_PC64)
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+CREATE_X86_32_PACKAGE = true
+
+
+include ../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/n/krb5
+
+REQUIRES           = net/krb5/1.19.1
+REQUIRES          += app/e2fsprogs/1.46.2-x86_32
+REQUIRES          += libs/keyutils/1.6.3-x86_32
+REQUIRES          += net/openldap/2.4.58-x86_32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.19.1
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/n/krb5/krb5-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/krb5-$(version)
+src_dir_name       = krb5-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = net
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+KRB5_32_PKG_NAME                = krb5-x32
+KRB5_32_PKG_VERSION             = 1.19.1
+KRB5_32_PKG_ARCH                = $(PKGARCH)
+KRB5_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+KRB5_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+KRB5_32_PKG_GROUP               = $(PKG_GROUP)
+###                              |---handy-ruler-------------------------------|
+KRB5_32_PKG_SHORT_DESCRIPTION   = Network authentication protocol
+KRB5_32_PKG_URL                 = $(BUG_URL)
+KRB5_32_PKG_LICENSE             = custom
+KRB5_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(KRB5_32_PKG_NAME)-pkg-description
+KRB5_32_PKG_DESCRIPTION_FILE_IN = $(KRB5_32_PKG_NAME)-pkg-description.in
+KRB5_32_PKG_INSTALL_SCRIPT      = $(KRB5_32_PKG_NAME)-pkg-install.sh
+
+KRB5_32_PKG      = $(CURDIR)/$(TARGET_BUILD_DIR)/$(KRB5_32_PKG_NAME)-package
+
+pkg_basename     = $(KRB5_32_PKG_NAME)-$(KRB5_32_PKG_VERSION)-$(KRB5_32_PKG_ARCH)-$(KRB5_32_PKG_DISTRO_NAME)-$(KRB5_32_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_certificate  = $(call cert-name,$(pkg_archive))
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../build-system/core.mk
+
+
+env_sysroot  = DESTDIR=$(KRB5_32_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(MULTILIB_X86_32_SUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var
+extra_configure_switches += --runstatedir=/var/run
+
+extra_configure_switches += --bindir=/usr/bin/32
+extra_configure_switches += --sbindir=/usr/sbin/32
+
+extra_configure_switches += --enable-dns-for-realm
+extra_configure_switches += --with-ldap
+extra_configure_switches += --with-system-et
+extra_configure_switches += --with-system-ss
+extra_configure_switches += --enable-pkinit
+extra_configure_switches += --with-tls-impl=openssl
+extra_configure_switches += --with-system-verto=no
+extra_configure_switches += --with-prng-alg=os
+
+extra_configure_switches += --with-tcl=no
+
+ifeq ($(__ENABLE_STATIC__),yes)
+extra_configure_switches += --enable-static=yes
+else
+extra_configure_switches += --enable-static=no
+endif
+extra_configure_switches += --enable-shared=yes
+
+
+extra_cross_environment  = krb5_cv_attr_constructor_destructor='yes,yes'
+extra_cross_environment += ac_cv_func_regcomp=yes
+extra_cross_environment += ac_cv_printf_positional=yes
+extra_cross_environment += PTHREAD_CFLAGS='$(CFLAGS)'
+extra_cross_environment += PTHREAD_LIBS='-lpthread'
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(extra_cross_environment) ../$(src_dir_name)/src/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET32)          \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(KRB5_32_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Move library to /lib$(MULTILIB_X86_32_SUFFIX) as it might be needed to mount /usr: =======
+	@mkdir $(KRB5_32_PKG)/lib$(MULTILIB_X86_32_SUFFIX)
+	@( cd $(KRB5_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   for lib in libgssapi_krb5 libk5crypto libkrb5 libkrb5support ; do \
+	     mv $${lib}.so.?.* ../../lib$(MULTILIB_X86_32_SUFFIX)       ; \
+	     ln -sf ../../lib$(MULTILIB_X86_32_SUFFIX)/$${lib}.so.?.* . ; \
+	     cp -a $${lib}.so.? ../../lib$(MULTILIB_X86_32_SUFFIX)      ; \
+	   done ; \
+	 )
+	@rm -rf $(KRB5_32_PKG)/usr/{include,sbin,share}
+	@rm -rf $(KRB5_32_PKG)/var
+	@( cd $(KRB5_32_PKG)/usr/bin/32 ; \
+	   for file in `ls --hide=krb5-config` ; do \
+	     rm -f $${file} ; \
+	   done ; \
+	 )
+	# ======= remove toolchain path from target pkg-config *.pc files =======
+	@( cd $(KRB5_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" gssrpc.pc kadm-client.pc kadm-server.pc kdb.pc          \
+	                                    krb5-gssapi.pc krb5.pc mit-krb5-gssapi.pc mit-krb5.pc ; \
+	 )
+	# ======= remove toolchain path from target krb5-config script =======
+	@( cd $(KRB5_32_PKG)/usr/bin/32 ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" krb5-config ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(KRB5_32_PKG))
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" gssrpc.pc kadm-client.pc kadm-server.pc kdb.pc          \
+	                                            krb5-gssapi.pc krb5.pc mit-krb5-gssapi.pc mit-krb5.pc ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" gssrpc.pc kadm-client.pc kadm-server.pc kdb.pc          \
+	                                              krb5-gssapi.pc krb5.pc mit-krb5-gssapi.pc mit-krb5.pc ; \
+	 )
+	# ======= tune krb5-config script to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/bin/32 ; \
+	   sed -i "s,=/usr,=$(TARGET_DEST_DIR)/usr,g" krb5-config ; \
+	   sed -i "s,L/usr,L$(TARGET_DEST_DIR)/usr,g" krb5-config ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" krb5-config ; \
+	   sed -i "s,I/usr,I$(TARGET_DEST_DIR)/usr,g" krb5-config ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(KRB5_32_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+ifeq ($(__ENABLE_STATIC__),yes)
+	@( cd $(KRB5_32_PKG) ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null ; \
+	 )
+endif
+	@touch $@
+
+$(KRB5_32_PKG_DESCRIPTION_FILE): $(KRB5_32_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(KRB5_32_PKG_DESCRIPTION_FILE) $(KRB5_32_PKG_INSTALL_SCRIPT)
+	@cp $(KRB5_32_PKG_DESCRIPTION_FILE) $(KRB5_32_PKG)/.DESCRIPTION
+	@cp $(KRB5_32_PKG_INSTALL_SCRIPT) $(KRB5_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(KRB5_32_PKG)/.REQUIRES
+	@echo "pkgname=$(KRB5_32_PKG_NAME)"                            >  $(KRB5_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(KRB5_32_PKG_VERSION)"                          >> $(KRB5_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(KRB5_32_PKG_ARCH)"                               >> $(KRB5_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(KRB5_32_PKG_DISTRO_NAME)"                  >> $(KRB5_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(KRB5_32_PKG_DISTRO_VERSION)"                >> $(KRB5_32_PKG)/.PKGINFO ; \
+	 echo "group=$(KRB5_32_PKG_GROUP)"                             >> $(KRB5_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(KRB5_32_PKG_SHORT_DESCRIPTION)\"" >> $(KRB5_32_PKG)/.PKGINFO ; \
+	 echo "url=$(KRB5_32_PKG_URL)"                                 >> $(KRB5_32_PKG)/.PKGINFO ; \
+	 echo "license=$(KRB5_32_PKG_LICENSE)"                         >> $(KRB5_32_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(KRB5_32_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: 1.19.1-x86_32/PATCHES
===================================================================
Index: 1.19.1-x86_32/krb5-x32-pkg-description.in
===================================================================
--- 1.19.1-x86_32/krb5-x32-pkg-description.in	(nonexistent)
+++ 1.19.1-x86_32/krb5-x32-pkg-description.in	(revision 5)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+        |-----handy-ruler------------------------------------------------------|
+krb5-x32: krb5-x32 @VERSION@ (Network authentication protocol)
+krb5-x32:
+krb5-x32: Kerberos is a network authentication protocol. It is designed to
+krb5-x32: provide strong authentication for client/server applications by
+krb5-x32: using secret-key cryptography.
+krb5-x32:
+krb5-x32:
+krb5-x32: Homepage: http://web.mit.edu/kerberos/
+krb5-x32:
+krb5-x32:
+krb5-x32:
Index: 1.19.1-x86_32/krb5-x32-pkg-install.sh
===================================================================
--- 1.19.1-x86_32/krb5-x32-pkg-install.sh	(nonexistent)
+++ 1.19.1-x86_32/krb5-x32-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: 1.19.1-x86_32/krb5-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: 1.19.1-x86_32
===================================================================
--- 1.19.1-x86_32	(nonexistent)
+++ 1.19.1-x86_32	(revision 5)

Property changes on: 1.19.1-x86_32
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: .
===================================================================
--- .	(nonexistent)
+++ .	(revision 5)

Property changes on: .
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~