Skip to content

Commit

Permalink
yp-tools: Update version from 2.12 to 4.2.3
Browse files Browse the repository at this point in the history
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:

< # BEE_VERSION NAME-1.0-0
---
> # BEE_VERSION yp-tools-4.2.3-1
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} "$@"
> }
  • Loading branch information
donald committed Apr 22, 2021
1 parent 9e0e097 commit 9a030f3
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 26 deletions.
26 changes: 0 additions & 26 deletions yp-tools-2.12-1.bee

This file was deleted.

38 changes: 38 additions & 0 deletions yp-tools.be0
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/usr/bin/env beesh

# BEE_VERSION yp-tools-4.2.3-1

# more info: https://foo.bar.com

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
#}

0 comments on commit 9a030f3

Please sign in to comment.