Browse Source

Add some modules for ezsync

master
belliash 7 years ago
parent
commit
a9e55c3866

+ 1
- 0
config/modules/openrc-branding.conf View File

@@ -0,0 +1 @@
1
+CUSTOM_OPENRC_BRAND="reGen2"

+ 13
- 0
modules/gentoo-compat.ezmod View File

@@ -0,0 +1,13 @@
1
+# Copyright 2010-2012, Asio Software Technologies
2
+# Distributed under the terms of the GNU General Public License v3
3
+EZMOD_DESCRIPTION="Enables various compatibility options in Portage tree"
4
+EZMOD_COMPATIBILITY="ezsync"
5
+EZMOD_AUTHOR="Rafal Kupiec"
6
+EZMOD_VERSION="1.0"
7
+
8
+ezsync_precommit() {
9
+	printInfo "Enabling compatibility options..."
10
+	echo "cache-formats = md5-dict pms" >> ${PORTAGESDIR}/${PORTAGE_BUILD[0]}/metadata/layout.conf
11
+	echo "profile-formats = portage-1" >> ${PORTAGESDIR}/${PORTAGE_BUILD[0]}/metadata/layout.conf
12
+	return 0
13
+}

+ 13
- 0
modules/mini-manifest.ezmod View File

@@ -0,0 +1,13 @@
1
+# Copyright 2010-2012, Asio Software Technologies
2
+# Distributed under the terms of the GNU General Public License v3
3
+EZMOD_DESCRIPTION="Minifies Portage tree with so-called mini-manifests"
4
+EZMOD_COMPATIBILITY="ezsync"
5
+EZMOD_AUTHOR="Rafal Kupiec"
6
+EZMOD_VERSION="1.0"
7
+
8
+ezsync_precommit() {
9
+	printInfo "Preparing mini-manifests..."
10
+	find ${PORTAGESDIR}/${PORTAGE_BUILD[0]} -type f -iname changelog -exec rm -f {} \;
11
+	find ${PORTAGESDIR}/${PORTAGE_BUILD[0]} -type f -iname manifest -exec sed -n -i -e "/DIST/p" {} \;
12
+	return 0
13
+}

+ 14
- 0
modules/openrc-branding.ezmod View File

@@ -0,0 +1,14 @@
1
+# Copyright 2010-2012, Asio Software Technologies
2
+# Distributed under the terms of the GNU General Public License v3
3
+EZMOD_DESCRIPTION="Allows to re-brand the OpenRC package"
4
+EZMOD_COMPATIBILITY="ezsync"
5
+EZMOD_AUTHOR="Rafal Kupiec"
6
+EZMOD_VERSION="1.0"
7
+
8
+ezsync_precommit() {
9
+	printInfo "Enabling custom OpenRC branding..."
10
+	find ${PORTAGESDIR}/${PORTAGE_BUILD[0]}/sys-apps/openrc -type f -name \*.ebuild | while read EBUILD; do
11
+		sed -i "s/BRANDING=\"Gentoo \${brand}\"/BRANDING=\"${CUSTOM_OPENRC_BRAND} \${brand}\"/g" ${EBUILD} || return 1
12
+	done
13
+	return 0
14
+}

+ 0
- 26
modules/sample.ezmod View File

@@ -1,26 +0,0 @@
1
-# Copyright 2010-2012, Asio Software Technologies
2
-# Distributed under the terms of the GNU General Public License v3
3
-EZMOD_DESCRIPTION="Sample module for learning and testing purposes"
4
-EZMOD_COMPATIBILITY="ezbuild ezsync"
5
-EZMOD_AUTHOR="Rafal Kupiec"
6
-EZMOD_VERSION="0.3"
7
-
8
-ezsync_presync() {
9
-	printWarn "Sample module loaded"
10
-	return 0
11
-}
12
-
13
-ezsync_postsync() {
14
-	printWarn "Sample module loaded"
15
-	return 0
16
-}
17
-
18
-ezsync_precommit() {
19
-	printWarn "Sample module loaded"
20
-	return 0
21
-}
22
-
23
-ezsync_postcommit() {
24
-	printWarn "Sample module loaded"
25
-	return 0
26
-}

+ 15
- 0
modules/thin-manifest.ezmod View File

@@ -0,0 +1,15 @@
1
+# Copyright 2010-2012, Asio Software Technologies
2
+# Distributed under the terms of the GNU General Public License v3
3
+EZMOD_DESCRIPTION="Minifies Portage tree with so-called thin-manifests"
4
+EZMOD_COMPATIBILITY="ezsync"
5
+EZMOD_AUTHOR="Rafal Kupiec"
6
+EZMOD_VERSION="1.0"
7
+
8
+ezsync_precommit() {
9
+	printInfo "Preparing thin-manifests..."
10
+	find ${PORTAGESDIR}/${PORTAGE_BUILD[0]} -type f -iname changelog -exec rm -f {} \;
11
+	find ${PORTAGESDIR}/${PORTAGE_BUILD[0]} -type f -iname manifest -exec sed -n -i -e "/DIST/p" {} \;
12
+	echo "thin-manifests = true" >> ${PORTAGESDIR}/${PORTAGE_BUILD[0]}/metadata/layout.conf
13
+	echo "sign-manifests = false" >> ${PORTAGESDIR}/${PORTAGE_BUILD[0]}/metadata/layout.conf
14
+	return 0
15
+}

Loading…
Cancel
Save