wok-next diff boinc/receipt @ rev 21267

updated freeradius (2.1.12 -> 3.0.20)
author Hans-G?nter Theisgen
date Fri Dec 06 17:16:20 2019 +0100 (2019-12-06)
parents d5aab818505e
children
line diff
     1.1 --- a/boinc/receipt	Fri Nov 02 14:15:08 2018 +0200
     1.2 +++ b/boinc/receipt	Fri Dec 06 17:16:20 2019 +0100
     1.3 @@ -2,28 +2,29 @@
     1.4  
     1.5  PACKAGE="boinc"
     1.6  VERSION="6.10.58"
     1.7 -SVN_TAG="6_10_58"
     1.8  CATEGORY="network"
     1.9  SHORT_DESC="Open-source software for volunteer computing and grid computing"
    1.10 -MAINTAINER="devel@slitaz.org"
    1.11 +MAINTAINER="maintainer@slitaz.org"
    1.12  LICENSE="GPL3"
    1.13  WEB_SITE="https://boinc.berkeley.edu/"
    1.14  
    1.15  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.16 -WGET_URL="svn|http://boinc.berkeley.edu/svn/tags/boinc_core_release_${SVN_TAG}"
    1.17 +WGET_URL="svn|https://boinc.berkeley.edu/svn/tags/boinc_core_release_${VERSION//./_}"
    1.18  
    1.19 -BUILD_DEPENDS="subversion openssl-dev autoconf automake curl-dev libidn-dev \
    1.20 -wxWidgets28-dev libnotify-dev sqlite3-dev file"
    1.21 +BUILD_DEPENDS="autoconf automake curl-dev file libidn-dev libnotify-dev 
    1.22 +	openssl-dev sqlite3-dev subversion wxWidgets28-dev"
    1.23  SPLIT="$PACKAGE-dev"
    1.24  
    1.25 -compile_rules() {
    1.26 +compile_rules()
    1.27 +{
    1.28  	sed -i 's/AC_PROG_CPP/&\nAC_PROG_OBJCXX/' configure.ac
    1.29 -	automake --add-missing
    1.30 -	./_autosetup
    1.31 -	./configure \
    1.32 -		--disable-server \
    1.33 -		--enable-unicode \
    1.34 -		--enable-optimize \
    1.35 +
    1.36 +	automake --add-missing &&
    1.37 +	./_autosetup &&
    1.38 +	./configure			\
    1.39 +		--disable-server	\
    1.40 +		--enable-unicode	\
    1.41 +		--enable-optimize	\
    1.42  		$CONFIGURE_ARGS &&
    1.43  	fix libtool &&
    1.44  	make &&
    1.45 @@ -38,12 +39,13 @@
    1.46  	install -Dm755 $stuff/boinc-client $install/etc/init.d/boinc-client
    1.47  }
    1.48  
    1.49 -genpkg_rules() {
    1.50 +genpkg_rules()
    1.51 +{
    1.52  	case $PACKAGE in
    1.53  		boinc)
    1.54  			copy @std
    1.55  			# The init script requires bash.
    1.56 -			DEPENDS="openssl libcurl wxWidgets28 libnotify bash"
    1.57 +			DEPENDS="bash libcurl libnotify openssl wxWidgets28"
    1.58  			;;
    1.59  		*-dev)
    1.60  			copy @dev
    1.61 @@ -51,12 +53,14 @@
    1.62  	esac
    1.63  }
    1.64  
    1.65 -post_install_boinc() {
    1.66 +post_install_boinc()
    1.67 +{
    1.68  	echo
    1.69  	# Check if boinc user already exists
    1.70 -	if grep -q "^$BOINCUSER:" "$1/etc/passwd"; then
    1.71 +	if grep -q "^$BOINCUSER:" "$1/etc/passwd"
    1.72 +	  then
    1.73  		chroot "$1/" adduser -g "BOINC User" -h /var/lib/boinc -s /bin/bash -S -H -D boinc
    1.74 -	else
    1.75 +	  else
    1.76  		# In case boinc was previously installed:
    1.77  		chroot "$1/" chown -R boinc /var/lib/boinc
    1.78  	fi
    1.79 @@ -64,14 +68,16 @@
    1.80  	echo 'Start the boinc client with "# /etc/init.d/boinc-client start"'
    1.81  }
    1.82  
    1.83 -post_remove_boinc() {
    1.84 +post_remove_boinc()
    1.85 +{
    1.86  	echo
    1.87  	echo -n "Delete user boinc and /var/lib/boinc (yes/No) ? : "
    1.88  	read -t 30 answer
    1.89 -	if [ "$answer" == "yes" ]; then
    1.90 +	if [ "$answer" == "yes" ]
    1.91 +	  then
    1.92  		chroot "$1/" deluser boinc
    1.93  		rm -r "$1/var/lib/boinc"
    1.94 -	else
    1.95 +	  else
    1.96  		echo ""
    1.97  		echo "Leaving user boinc and /var/lib/boinc"
    1.98  	fi