From 9ea05e8808b0d084dc5aa6372277bf4696b3f21e Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Thu, 22 Apr 2021 14:44:26 +0200 Subject: [PATCH] yp-tools: Update version from 2.12 to 4.2.3 Version 2.12 no longer compiles because of the removal of rpc code from glibc. This has been addressed in later releases. Use release from https://github.com/thkukuk/yp-tools which is referenced from http://www.linux-nis.org/. The autogen.sh provided with the package is not prepared for a separate source tree, so use `build_in_sourcedir`. bees autogen receipt doesn't call configure after autogen.sh. Overwrite bee_configure to do so, The patch from yp-tools-2.12.1.bee to let ypppasswd skip the check of the old password if shadow passwords are enabled, is no longer required as equivalent code has been integrated into 4.2.3. Build to revision -1, because a revision -0 already exists as a unmerged bee package. Overall the changtes from mTEMPLATE are: 3c3 < # BEE_VERSION NAME-1.0-0 --- > # BEE_VERSION yp-tools-4.2.3-1 5c5 < # more info: https://foo.bar.com --- > # more info: http://www.linux-nis.org/ 7c7 < SRCURL[0]="https://SERVER/PATH/NAME.${PKGVERSION}.tar.gz" --- > SRCURL[0]="https://github.com/thkukuk/yp-tools/archive/refs/tags/v${PKGVERSION}.tar.gz" 11c11 < # build_in_sourcedir --- > build_in_sourcedir 23,25c23,26 < #mee_configure() { < # bee_configure < #} --- > mee_configure() { > start_cmd ${S}/autogen.sh ${DEFCONFIG} "$@" > start_cmd ${S}/configure ${DEFCONFIG} "$@" > } --- yp-tools-2.12-1.bee | 26 -------------------------- yp-tools.be0 | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 26 deletions(-) delete mode 100755 yp-tools-2.12-1.bee create mode 100755 yp-tools.be0 diff --git a/yp-tools-2.12-1.bee b/yp-tools-2.12-1.bee deleted file mode 100755 index b2e1dae88..000000000 --- a/yp-tools-2.12-1.bee +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/env beesh - -SRCURL[0]="ftp://ftp.kernel.org/pub/linux/utils/net/NIS/yp-tools-${PKGVERSION}.tar.bz2" - -PATCHURL[0]="/src/mariux/download/yp-tools-2.12-yppasswd-skip-old-password-check-when-shadow-passwor.patch" - -PGRP=( uncategorized ) - -# EXCLUDE="" - -mee_patch() { - bee_patch -} - -mee_configure() { - bee_configure -} - -mee_build() { - bee_build -} - -mee_install() { - bee_install -} - diff --git a/yp-tools.be0 b/yp-tools.be0 new file mode 100755 index 000000000..596ddd8b8 --- /dev/null +++ b/yp-tools.be0 @@ -0,0 +1,38 @@ +#!/usr/bin/env beesh + +# BEE_VERSION yp-tools-4.2.3-1 + +# more info: http://www.linux-nis.org/ + +SRCURL[0]="https://github.com/thkukuk/yp-tools/archive/refs/tags/v${PKGVERSION}.tar.gz" + +# PATCHURL+=() + +build_in_sourcedir + +# sourcesubdir_append src + +#mee_extract() { +# bee_extract "${@}" +#} + +#mee_patch() { +# bee_patch "${@}" +#} + +mee_configure() { + start_cmd ${S}/autogen.sh ${DEFCONFIG} "$@" + start_cmd ${S}/configure ${DEFCONFIG} "$@" +} + +#mee_build() { +# bee_build +#} + +#mee_install() { +# bee_install +#} + +#mee_install_post() { +# exit +#}