Compare commits

7 Commits

Author SHA1 Message Date
d9adfc20f2 profiles: rearrange profiles
Rearrange the profiles and fix building on musl.
2026-02-09 15:35:45 +02:00
1cb31ca1de profiles: add the new profiles to profiles.desc 2026-02-09 15:35:45 +02:00
90e760e35c profiles/linux: add a first iteration of minimal profiles 2026-02-09 15:35:45 +02:00
1c5c6d95d1 app-eselect/eselect-php: new package, add 2 2026-02-09 15:35:45 +02:00
aca5adf0a1 app-admin/webapp-config: new package, add 2, 9999 2026-02-09 15:35:45 +02:00
a96ac2e56d virtual/gcc-libs: new package, add 15 2026-02-09 15:35:45 +02:00
397aa9ab5c sys-libs/gcc-libs: new package, add 15 2026-02-09 15:35:45 +02:00
49 changed files with 350 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>ceamac@gentoo.org</email>
<name>Viorel Munteanu</name>
</maintainer>
<use>
<flag name="portage">Propagate python_targets dependencies to <pkg>sys-apps/portage</pkg></flag>
</use>
</pkgmetadata>

View File

@@ -0,0 +1,32 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Gentoo config file for missing webapp-config"
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
S="${WORKDIR}"
LICENSE="GPL-2+"
SLOT="ceamac"
KEYWORDS="~amd64"
RESTRICT="bindist"
BDEPEND="app-admin/webapp-config:0"
pkg_setup() {
[[ ${ROOT} != ${BROOT} ]] && export MAKELINKS=1
}
src_install() {
if [[ -n ${MAKELINKS} ]]; then
dodir /etc/vhosts
dodir /usr/sbin
keepdir /var/www/
# Ugly, but intentional. This is supposed to point outside of ${ROOT}.
dosym "${BROOT}"/etc/vhosts/webapp-config /etc/vhosts/webapp-config
dosym "${BROOT}"/usr/sbin/webapp-config /usr/sbin/webapp-config
fi
}

View File

@@ -0,0 +1,67 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{12..14} )
inherit distutils-r1 prefix
if [[ ${PV} = 9999* ]]
then
EGIT_REPO_URI="/home/viorel/src/webapp-config/"
EGIT_BRANCH="fixes"
inherit git-r3
else
SRC_URI="https://dev.gentoo.org/~ceamac/${CATEGORY}/${PN}/${P}.tar.bz2"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
fi
DESCRIPTION="Gentoo's installer for web-based applications"
HOMEPAGE="https://wiki.gentoo.org/wiki/Webapp-config"
LICENSE="GPL-2"
SLOT="0"
IUSE="+portage"
DEPEND="app-text/xmlto
sys-apps/gentoo-functions"
RDEPEND="
portage? ( sys-apps/portage[${PYTHON_USEDEP}] )"
python_prepare_all() {
distutils-r1_python_prepare_all
eprefixify WebappConfig/eprefix.py config/webapp-config
}
python_compile_all() {
emake -C doc/
}
python_test() {
PYTHONPATH="." "${EPYTHON}" WebappConfig/tests/external.py -v ||
die "Testing failed with ${EPYTHON}"
}
python_install_all() {
distutils-r1_python_install_all
# distutils-r1 installs the scripts in /usr/bin in PEP517 mode
mv "${ED}"/usr/bin "${ED}"/usr/sbin || die "Cannot rename scripts directory to /usr/sbin"
insinto /etc/vhosts
doins config/webapp-config
keepdir /usr/share/webapps
keepdir /var/db/webapps
dodoc AUTHORS
doman doc/*.[58]
}
pkg_postinst() {
elog "Now that you have upgraded webapp-config, you **must** update your"
elog "config files in /etc/vhosts/webapp-config before you emerge any"
elog "packages that use webapp-config."
}

View File

@@ -0,0 +1,50 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
TMPFILES_OPTIONAL="yes"
inherit tmpfiles
DESCRIPTION="Gentoo config file for missing eselect-php"
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
S="${WORKDIR}"
LICENSE="GPL-2+"
SLOT="ceamac"
KEYWORDS="~amd64"
IUSE="fpm apache2"
RESTRICT="bindist"
RDEPEND="fpm? ( virtual/tmpfiles )"
BDEPEND="app-eselect/eselect-php:0[fpm?,apache2?]"
pkg_setup() {
[[ ${ROOT} != ${BROOT} ]] && export COPYFILES=1
}
src_install() {
if [[ -n ${COPYFILES} ]]; then
local files_to_copy=(
/etc/apache2/modules.d/70_mod_php.conf
/etc/conf.d/php-fpm
/etc/init.d/php-fpm
/etc/logrotate.d/php-fpm.logrotate
/usr/lib/tmpfiles.d/php-fpm.conf
/usr/libexec/php-fpm-launcher
)
local i
for i in "${files_to_copy[@]}"; do
if [[ -e "${BROOT}"/"${i}" ]]; then
dodir "$(dirname "${i}")"
cp -p "${BROOT}"/"${i}" "${ED}"/"${i}" || die
fi
done
fi
}
pkg_postinst() {
use fpm && tmpfiles_process php-fpm.conf
}

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>ceamac@gentoo.org</email>
<name>Viorel Munteanu</name>
</maintainer>
<use>
<flag name="fpm">Enable the FastCGI Process Manager SAPI</flag>
</use>
<stabilize-allarches/>
</pkgmetadata>

View File

@@ -0,0 +1 @@
5

View File

@@ -0,0 +1 @@
5

View File

@@ -0,0 +1,2 @@
..
../../features/musl

View File

@@ -0,0 +1,2 @@
..
../../../features/busybox

View File

@@ -0,0 +1 @@
5

View File

@@ -0,0 +1,10 @@
# Copyright 1999-2018 Gentoo Foundation.
# Distributed under the terms of the GNU General Public License v2
CHOST="x86_64-pc-linux-musl"
# Anthony G. Basile <blueness@gentoo.org> (2014-07-01)
# Multilib-related setup, bug #515130
MULTILIB_ABIS="amd64"
CHOST_amd64="${CHOST}"
LIBDIR_amd64="lib"

View File

@@ -0,0 +1,15 @@
# Copyright 2020-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Sam James <sam@gentoo.org> (2022-10-08)
# openjdk-bin is available on amd64 musl
-dev-java/openjdk-bin
dev-java/openjdk-bin:8
# Georgy Yakovlev <gyakovlev@gentoo.org> (2020-01-28)
# rust-bin is available on amd64 musl
-dev-lang/rust-bin
# Sebastian Parborg <darkdefende@gmail.com> (2025-01-21)
# blender-bin is only compatible with glibc
media-gfx/blender-bin

View File

@@ -0,0 +1,6 @@
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Georgy Yakovlev <gyakovlev@gentoo.org> (2020-01-28)
# upstream does not provide docs in musl tarball
dev-lang/rust-bin doc

View File

@@ -0,0 +1,2 @@
../../../../features/musl
../../../../features/installmask

View File

@@ -0,0 +1 @@
5

View File

@@ -0,0 +1 @@
5

View File

@@ -0,0 +1,2 @@
..
../../features/musl

View File

@@ -0,0 +1,2 @@
..
../../../features/gnu

View File

@@ -0,0 +1,7 @@
../../gentoo/base
../../gentoo/default
gentoo:arch/amd64
gentoo:arch/amd64/no-multilib
gentoo:features/merged-usr
../../features/minimal
../../features/installmask

View File

@@ -0,0 +1 @@
5

View File

@@ -0,0 +1 @@
USE="-udev -pam"

View File

@@ -0,0 +1,2 @@
sys-apps/busybox -static syslog mdev math make-symlinks
sys-apps/util-linux -cramfs -hardlink -logger -su -suid

View File

@@ -0,0 +1,2 @@
*sys-apps/baselayout
*sys-apps/busybox

View File

@@ -0,0 +1 @@
5

View File

@@ -0,0 +1 @@
USE="${USE} cxx"

View File

@@ -0,0 +1,15 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
*>=sys-apps/baselayout-2
*app-alternatives/awk
*app-alternatives/bzip2
*app-alternatives/gzip
*app-alternatives/sh
*app-alternatives/tar
*app-arch/xz-utils
*sys-apps/coreutils
*>=sys-apps/findutils-4.4
*sys-apps/grep
*sys-apps/sed
*virtual/libc

View File

@@ -0,0 +1 @@
5

View File

@@ -0,0 +1,4 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
INSTALL_MASK="${INSTALL_MASK} /usr/share/doc /usr/share/man /usr/share/locale /usr/lib64/pkgconfig /usr/include /usr/share/info /usr/lib*/python*/test"

View File

@@ -0,0 +1 @@
5

View File

@@ -0,0 +1,5 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
USE="pam pcre zlib ipv6 minimal ssl"
USE="${USE} -acl -xattr -fortran -ncurses -readline -static-libs -nls -multiarch -kmod -seccomp"

View File

@@ -0,0 +1 @@
app-arch/xz-utils -extra-filters

View File

@@ -0,0 +1,2 @@
app-shells/bash:0 -readline
sys-libs/glibc -static-libs

View File

@@ -0,0 +1 @@
*virtual/gcc-libs

View File

@@ -0,0 +1 @@
5

View File

@@ -0,0 +1,4 @@
-*app-misc/pax-utils
-*sys-apps/sandbox
*sys-libs/musl

View File

@@ -0,0 +1 @@
gentoo:features/musl

View File

@@ -0,0 +1 @@
Same as gentoo:base, but without packages

View File

@@ -0,0 +1 @@
5

View File

@@ -0,0 +1 @@
-*

View File

@@ -0,0 +1 @@
gentoo:base

View File

@@ -0,0 +1 @@
Same as gentoo:default/linux, but without packages

View File

@@ -0,0 +1 @@
5

View File

@@ -0,0 +1 @@
-*

View File

@@ -0,0 +1 @@
gentoo:default/linux

10
profiles/profiles.desc Normal file
View File

@@ -0,0 +1,10 @@
# Copyright 2003-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Minimal profiles
amd64 linux/arch/amd64/gnu exp
amd64 linux/arch/amd64/busybox exp
# Minimal musl profiles
amd64 linux/arch/amd64/gnu/musl exp
amd64 linux/arch/amd64/busybox/musl exp

View File

@@ -0,0 +1,34 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Shared libs provided by gcc for use in embedded systems"
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
S="${WORKDIR}"
LICENSE="|| ( GPL-3+ libgcc libstdc++ gcc-runtime-library-exception-3.1 )"
SLOT="0"
KEYWORDS="amd64"
IUSE="cxx"
COMMON_DEPEND="virtual/libc"
DEPEND="
${COMMON_DEPEND}
!!sys-devel/gcc
"
RDEPEND="
${COMMON_DEPEND}
!sys-devel/gcc
"
BDEPEND="sys-devel/gcc:${PV}[cxx?]"
QA_PREBUILT="*"
src_install() {
dodir /usr/$(get_libdir)
cp -r "${BROOT}"/usr/lib/gcc/${CHOST}/${PV}/libgcc_s.so* "${ED}"/usr/$(get_libdir)/ || die
if use cxx; then
cp -r "${BROOT}"/usr/lib/gcc/${CHOST}/${PV}/libstdc++.so* "${ED}"/usr/$(get_libdir)/ || die
fi
}

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM 'https://www.gentoo.org/dtd/metadata.dtd'>
<pkgmetadata>
<maintainer type="person">
<email>ceamac@gentoo.org</email>
<name>Viorel Munteanu</name>
</maintainer>
</pkgmetadata>

View File

@@ -0,0 +1,13 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Virtual for gcc-libs"
SLOT="0"
KEYWORDS="amd64"
RDEPEND="|| (
~sys-libs/gcc-libs-${PV}
sys-devel/gcc:${PV}
)"

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM 'https://www.gentoo.org/dtd/metadata.dtd'>
<pkgmetadata>
<maintainer type="person">
<email>ceamac@gentoo.org</email>
<name>Viorel Munteanu</name>
</maintainer>
</pkgmetadata>