From cf09c0ea05db8158d2cd781d0315730fc58162cf Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Wed, 17 Jun 2020 13:45:55 -0400 Subject: ob-gencontrol: Generate a "Section" field And add it to SPF 2.x. --- (limited to 'src') diff --git a/src/ob-gencontrol.sh b/src/ob-gencontrol.sh index 471e079..b6d649e 100644 --- a/src/ob-gencontrol.sh +++ b/src/ob-gencontrol.sh @@ -119,8 +119,8 @@ gen_control_bin() local plat="${4}" local desc="${5}" shift 5 - local name= local value= + local name= local homepage= mkdir -p -- "${binary}.control" @@ -131,6 +131,14 @@ gen_control_bin() Version: ${version} Architecture: ${arch} Platform: ${plat} + EOF + value="$(ob_get_binary_parameter "${binary}" 'Section')" + if [ -n "${value}" ]; then + cat >>"${binary}.control/control" <<-EOF + Section: ${value} + EOF + fi + cat >>"${binary}.control/control" <<-EOF Maintainer: $(ob_get_source_parameter 'Maintainer' | \ tr '\n' ' ') EOF -- cgit v0.9.1