Compare commits
6 Commits
9eb046a477
...
eb85bebd60
| Author | SHA1 | Date | |
|---|---|---|---|
|
eb85bebd60
|
|||
|
c57fe87eab
|
|||
|
10f08799f6
|
|||
|
85c27068a0
|
|||
|
814fb98dce
|
|||
|
768d9e1417
|
@@ -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>
|
||||||
@@ -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
|
||||||
|
}
|
||||||
@@ -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."
|
||||||
|
}
|
||||||
@@ -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
|
||||||
|
}
|
||||||
@@ -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>
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
5
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
USE="-udev -pam"
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
5
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
..
|
||||||
|
gentoo:features/musl
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
sys-apps/busybox -static syslog mdev math make-symlinks
|
||||||
|
sys-apps/util-linux -cramfs -hardlink -logger -su -suid
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
*sys-apps/baselayout
|
||||||
|
*sys-apps/busybox
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
../../../gentoo/base
|
||||||
|
../../../gentoo/default
|
||||||
|
gentoo:arch/amd64
|
||||||
|
gentoo:arch/amd64/no-multilib
|
||||||
|
gentoo:features/merged-usr
|
||||||
|
../../../minimal
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
5
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
USE="${USE} cxx"
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
5
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
CHOST="x86_64-pc-linux-musl"
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
*sys-libs/musl
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
..
|
||||||
|
gentoo:features/musl
|
||||||
@@ -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
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
../../../gentoo/base
|
||||||
|
../../../gentoo/default
|
||||||
|
gentoo:arch/amd64
|
||||||
|
gentoo:arch/amd64/no-multilib
|
||||||
|
gentoo:features/merged-usr
|
||||||
|
../../../minimal
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Same as gentoo:base, but without packages
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
5
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
-*
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
gentoo:base
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Same as gentoo:default/linux, but without packages
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
5
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
-*
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
gentoo:default/linux
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
5
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
# 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"
|
||||||
|
|
||||||
|
INSTALL_MASK="/usr/share/doc /usr/share/man /usr/share/locale /usr/lib64/pkgconfig /usr/include /usr/share/info /usr/lib*/python*/test"
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
app-arch/xz-utils -extra-filters
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
app-shells/bash:0 -readline
|
||||||
|
sys-libs/glibc -static-libs
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
*virtual/gcc-libs
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
# Copyright 2003-2024 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
amd64 linux/arch/amd64/gnu exp
|
||||||
|
amd64 linux/arch/amd64/gnu/musl exp
|
||||||
|
amd64 linux/arch/amd64/busybox exp
|
||||||
|
amd64 linux/arch/amd64/busybox/musl exp
|
||||||
@@ -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
|
||||||
|
}
|
||||||
@@ -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>
|
||||||
@@ -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}
|
||||||
|
)"
|
||||||
@@ -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>
|
||||||
Reference in New Issue
Block a user