From 5c8b4a8ace8538138f8daab29c6dd46f96fae618 Mon Sep 17 00:00:00 2001
From: Patrick McDermott <patrick.mcdermott@libiquity.com>
Date: Sun, 12 Jul 2020 00:13:21 -0400
Subject: ppt-mkpkgs: Add Section fields to control files

---
(limited to 'src')

diff --git a/src/2/ppt-mkpkgs b/src/2/ppt-mkpkgs
index 0567346..04fb541 100644
--- a/src/2/ppt-mkpkgs
+++ b/src/2/ppt-mkpkgs
@@ -21,6 +21,7 @@ make_common_pkg()
 		# Generated by ppt-mkpkgs.  Do not edit.
 		Architecture: all
 		Platform: all
+		Section: share
 		Description: "${PLAT}" platform configuration - common files
 		EOF
 	>"config-${PLAT}-common.pkg/docs"
@@ -36,6 +37,7 @@ make_base_pkg()
 		# Generated by ppt-mkpkgs.  Do not edit.
 		Architecture: all
 		Platform: ${PLAT}
+		Section: share
 		Essential: yes
 		Depends: config-${PLAT}-common (= \${Binary-Version}),
 		 \${Config-Base-Depends}
@@ -60,6 +62,7 @@ make_build_time_pkgs()
 			# Generated by ppt-mkpkgs.  Do not edit.
 			Architecture: all
 			Platform: all
+			Section: dev
 			Depends: config-${PLAT}-common (= \${Binary-Version}),
 			 \${Config-${pkg}-Depends}
 			Description: "${PLAT}" platform configuration for ${pkg}
@@ -85,6 +88,7 @@ make_run_time_pkgs()
 			# Generated by ppt-mkpkgs.  Do not edit.
 			Architecture: all
 			Platform: ${PLAT}
+			Section: share
 			Depends: config-${PLAT}-common (= \${Binary-Version}),
 			 \${Config-${pkg}-Depends}
 			Description: "${PLAT}" platform configuration for ${pkg}
@@ -109,6 +113,7 @@ main()
 	make_base_pkg
 	make_build_time_pkgs
 	make_run_time_pkgs
+	info 'Consider adding "opkbuild (>= 4.2.0)" to Build-Depends'
 	if ${MAKE_SUBSTVARS}; then
 		info 'Stub "substvars" file generated.  Set variables as '$(: \
 			)'needed.'
diff --git a/src/3/ppt-mkpkgs b/src/3/ppt-mkpkgs
index 41121f9..2cb1908 100644
--- a/src/3/ppt-mkpkgs
+++ b/src/3/ppt-mkpkgs
@@ -21,6 +21,7 @@ make_common_pkg()
 		# Generated by ppt-mkpkgs.  Do not edit.
 		Architecture: all
 		Platform: all
+		Section: share
 		Description: "${PLAT}" platform configuration - common files
 		EOF
 	>"config-${PLAT}-common.pkg/docs"
@@ -36,6 +37,7 @@ make_base_pkg()
 		# Generated by ppt-mkpkgs.  Do not edit.
 		Architecture: all
 		Platform: ${PLAT}
+		Section: share
 		Essential: yes
 		Depends: config-${PLAT}-common (= \${Binary-Version}),
 		 \${Config-Base-Depends}
@@ -62,6 +64,7 @@ make_build_time_pkgs()
 			# Generated by ppt-mkpkgs.  Do not edit.
 			Architecture: all
 			Platform: all
+			Section: dev
 			Depends: config-${PLAT}-common (= \${Binary-Version}),
 			 \${Config-${pkg}-Depends}
 			Description: "${PLAT}" platform configuration for ${pkg}
@@ -87,6 +90,7 @@ make_run_time_pkgs()
 			# Generated by ppt-mkpkgs.  Do not edit.
 			Architecture: all
 			Platform: ${PLAT}
+			Section: share
 			Depends: config-${PLAT}-common (= \${Binary-Version}),
 			 \${Config-${pkg}-Depends}
 			Description: "${PLAT}" platform configuration for ${pkg}
@@ -111,6 +115,7 @@ main()
 	make_base_pkg
 	make_build_time_pkgs
 	make_run_time_pkgs
+	info 'Consider adding "opkbuild (>= 4.2.0)" to Build-Depends'
 	if ${MAKE_SUBSTVARS}; then
 		info 'Stub "substvars" file generated.  Set variables as '$(: \
 			)'needed.'
--
cgit v0.9.1