Initial commit

This commit is contained in:
root 2015-10-13 01:20:04 +02:00
commit 78508943df
51 changed files with 592 additions and 0 deletions

19
bashrc Normal file
View File

@ -0,0 +1,19 @@
CC=clang
CXX=clang++
CFLAGS="-O2 -pipe -Wall"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j4"
# cmake
CMAKE_MAKEFILE_GENERATOR="ninja"
# toolchain/gcc
I_KNOW_WHAT_I_AM_DOING="yes"
I_PROMISE_TO_SUPPLY_PATCHES_WITH_BUGS=1
# git-r3
EGIT_CLONE_TYPE=shallow
[[ -e /etc/paludis/hooks/setup_pkg_env.bash ]] && . /etc/paludis/hooks/setup_pkg_env.bash

2
env.conf.d/O3.conf Normal file
View File

@ -0,0 +1,2 @@
add-options CFLAGS -O3
add-options CXXFLAGS -O3

2
env.conf.d/debug.conf Normal file
View File

@ -0,0 +1,2 @@
add-options CFLAGS -Wall -g
add-options CXXFLAGS -Wall -g

View File

@ -0,0 +1,2 @@
add-options CFLAGS -Wall -g -O0
add-options CXXFLAGS -Wall -g -O0

6
env.conf.d/gcc.conf Normal file
View File

@ -0,0 +1,6 @@
CC=x86_64-pc-linux-gnu-gcc
CXX=x86_64-pc-linux-gnu-g++
remove-options CFLAGS -Qunused-arguments -fcolor-diagnostics
remove-options CXXFLAGS -Qunused-arguments -fcolor-diagnostics

View File

@ -0,0 +1 @@
remove-options LDFLAGS -Wl,--as-needed

2
env.conf.d/no-debug.conf Normal file
View File

@ -0,0 +1,2 @@
add-options CFLAGS -g0
add-options CXXFLAGS -g0

View File

@ -0,0 +1 @@
MAKEOPTS="-j1"

52
fetchers/docurl Executable file
View File

@ -0,0 +1,52 @@
#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
# Curl fetcher for paludis
# Create a symbolic link to this file under SHAREDIR/paludis/fetchers/, where
# SHAREDIR is probably /usr/share, with the name doftp, dohttp or dohttps
# depending on the protocols you want to use it with.
# Set EXTRA_CURL in paludis' bashrc for extra options for curl.
export PATH="$(${PALUDIS_EBUILD_DIR}/utils/canonicalise ${PALUDIS_EBUILD_DIR}/utils/ ):${PATH}"
source ${PALUDIS_EBUILD_DIR}/echo_functions.bash
old_set=$-
set -a
for f in ${PALUDIS_BASHRC_FILES}; do
[[ -f "${f}" ]] && source "${f}"
done
[[ "${old_set}" == *a* ]] || set +a
if [[ -n "${PALUDIS_USE_SAFE_RESUME}" ]] ; then
if [[ -f "${2}.-PARTIAL-" ]] ; then
if [[ $(wrapped_getfsize "${2}".-PARTIAL- ) -ge 123456 ]] ; then
einfo_unhooked "Attempting resume using ${2}.-PARTIAL-"
else
einfo_unhooked "Not attempting resume using ${2}.-PARTIAL- (too small)"
echo rm -f "${2}".-PARTIAL-
rm -f "${2}".-PARTIAL-
fi
fi
echo ${CURL_WRAPPER} ${LOCAL_CURL:-curl} ${EXTRA_CURL} --connect-timeout 30 --retry 1 --fail -L -C - -o "${2}".-PARTIAL- "${1}" 1>&2
if ${CURL_WRAPPER} ${LOCAL_CURL:-curl} ${EXTRA_CURL} --connect-timeout 30 --retry 1 --fail -L -C - -o "${2}".-PARTIAL- "${1}" ; then
echo mv -f "${2}".-PARTIAL- "${2}"
mv -f "${2}".-PARTIAL- "${2}"
exit 0
else
rm -f "${2}"
exit 1
fi
else
echo ${CURL_WRAPPER} ${LOCAL_CURL:-curl} ${EXTRA_CURL} --connect-timeout 30 --retry 1 --fail -L -o "${2}" "${1}" 1>&2
if ${CURL_WRAPPER} ${LOCAL_CURL:-curl} ${EXTRA_CURL} --connect-timeout 30 --retry 1 --fail -L -o "${2}" "${1}" ; then
exit 0
else
rm -f "${2}"
exit 1
fi
fi

1
fetchers/doftp Symbolic link
View File

@ -0,0 +1 @@
docurl

1
fetchers/dohttp Symbolic link
View File

@ -0,0 +1 @@
docurl

1
fetchers/dohttps Symbolic link
View File

@ -0,0 +1 @@
docurl

1
general.conf Normal file
View File

@ -0,0 +1 @@
world="/var/lib/portage/world"

68
hooks/auto_patch.bash Normal file
View File

@ -0,0 +1,68 @@
#!/bin/bash
#
# Paludis hook script to apply patch (w/o modifying corresponding ebuild file).
#
# Copyright (c), 2010-2012 by Alex Turbov <i.zaufi@gmail.com>
#
# Version: @PH_VERSION@
#
source ${PALUDIS_EBUILD_DIR}/echo_functions.bash
declare -r CONFIG_FILE="/etc/paludis/hooks/configs/auto_patch.conf"
PATCH_DIR="/var/db/paludis/autopatches"
# Configuration override
[[ -f ${CONFIG_FILE} ]] && source ${CONFIG_FILE}
PATCH_DIR_FULL="${PATCH_DIR}/${HOOK}/${CATEGORY}/${PF}"
_ap_rememberfile="${T}/.autopatch_was_here_${PALUDIS_PID}"
issue_a_warning()
{
local -r tobe="$1"
ewarn "WARNING: ${CATEGORY}/${PF} package $tobe installed with additional patches applied by auto-patch hook."
ewarn "WARNING: Before filing a bug, remove all patches, reinstall, and try again..."
}
try_to_apply_patches()
{
if [[ -n ${PALUDIS_HOOK_DEBUG} ]]; then
einfo "Check ${PATCH_DIR_FULL}"
fi
if [[ -d ${PATCH_DIR_FULL} ]] ; then
cd "${S}" || die "Failed to cd into ${S}!"
for i in "${PATCH_DIR_FULL}"/*.patch ; do
if declare -f epatch >/dev/null ; then
epatch ${i}
else
# sane default if no epatch is there
einfo "Applying ${i} ..."
patch -p1 -i "${i}" || die "Failed to apply ${i}!"
fi
touch "${_ap_rememberfile}" || die "Failed to touch ${_ap_rememberfile}!"
done
if [[ -e ${_ap_rememberfile} ]]; then
issue_a_warning "will be"
else
einfo "No patches in for this package."
fi
fi
}
case "${HOOK}" in
# ATTENTION This script must be symlinked to the following hook dirs:
ebuild_compile_post | \
ebuild_compile_pre | \
ebuild_configure_post | \
ebuild_configure_pre | \
ebuild_install_pre | \
ebuild_unpack_post )
try_to_apply_patches
;;
install_all_post)
if [[ -e ${_ap_rememberfile} ]] ; then
issue_a_warning "was"
fi
;;
esac

View File

@ -0,0 +1,11 @@
#
# auto-patch.conf
#
# REMINDER: autopatch hook applies patches AFTER ebuild has done all
# unpacking and patching.
# Home directory for the patches.
# Put the patches in ${PATCH_DIR}/cat/pkg-ver/ subdirectory
# NOTE Uncomment the following line to override default location
# PATCH_DIR="@PH_LOCALSTATEDIR@/paludis/autopatches"

View File

@ -0,0 +1,7 @@
#!/bin/bash
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
ebegin "Update search index at ${CAVE_SEARCH_INDEX}"
cave manage-search-index --create "${CAVE_SEARCH_INDEX}"
eend $?

View File

@ -0,0 +1 @@
../auto_patch.bash

View File

@ -0,0 +1,7 @@
#!/bin/bash
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
einfo "running 'etckeeper post-install'"
etckeeper post-install

View File

@ -0,0 +1,7 @@
#!/bin/bash
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
einfo "running 'etckeeper post-install'"
etckeeper post-install

View File

@ -0,0 +1,7 @@
#!/bin/bash
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
einfo "running 'etckeeper pre-install'"
etckeeper pre-install

View File

@ -0,0 +1,7 @@
#!/bin/bash
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
einfo "running 'etckeeper pre-install'"
etckeeper pre-install

View File

@ -0,0 +1 @@
../auto_patch.bash

13
hooks/set_portdir.bash Normal file
View File

@ -0,0 +1,13 @@
#!/bin/bash
# set PORTDIR
source "${PALUDIS_EBUILD_DIR}/die_functions.bash"
PORTDIR="$(${CAVE} print-repository-metadata --format '%v' --raw-name location gentoo)"
if [[ -z ${PORTDIR} || "$(dirname ${PORTDIR})" == "/" ]] ; then
die "PORTDIR empty or pointing to root!"
elif [[ ! -e ${PORTDIR} ]] ; then
die "${PORTDIR} does not exist!"
fi

64
hooks/setup_pkg_env.bash Normal file
View File

@ -0,0 +1,64 @@
#!/bin/bash
#
# Helper functions to use from /etc/paludis/bashrc and
# package environment control files.
#
# Copyright 2014 by Alex Turbov <i.zaufi@gmail.com>
#
source ${PALUDIS_EBUILD_DIR}/echo_functions.bash
#
# Add options to the end of a given var
# $1 - variable to modify
# $2..$n - options to add
#
add-options()
{
local var=$1
shift
local stmt="$var=\"\$${var} $*\""
eval "$stmt"
}
#
# Remove options from a given var
# $1 - variable to modify
# $2..$n - options to remove
#
remove-options()
{
local -r _ro_var="$1"
shift
local -a _ro_new_value
local _ro_opt
local _ro_del_value
# Iterate over options in a variable
for _ro_opt in ${!_ro_var}; do
# Iterate over options to remove passed as function parameters
for _ro_del_value in "$@"; do
[[ ${_ro_opt} == ${_ro_del_value} ]] && continue 2
done
_ro_new_value+=( "${_ro_opt}" )
done
eval "${_ro_var}=\"${_ro_new_value[@]}\""
}
setup_pkg_env()
{
local conf
[[ ! -f /etc/paludis/package_env.conf ]] && return
# Select configured environments
local envs=$(for i in `egrep "^${CATEGORY}/(${PN}|\*)(:[^\s]+)?\s" /etc/paludis/package_env.conf | sed 's,[^ ]\+\s,,'`; do echo "${i}"; done | sort -u)
for conf in $envs; do
if [[ -f /etc/paludis/env.conf.d/${conf}.conf ]]; then
source /etc/paludis/env.conf.d/${conf}.conf
else
ewarn "Ignore undefined environment configuration: ${conf}"
fi
done
}
# Do it!
setup_pkg_env

View File

@ -0,0 +1 @@
../create_search_index.bash

View File

@ -0,0 +1,7 @@
#!/bin/bash
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
ebegin "Updating eix cache"
eix-update -q
eend $?

View File

@ -0,0 +1,17 @@
#!/bin/bash
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
source "/etc/paludis/hooks/set_portdir.bash"
if [[ ${TARGET} == gentoo ]] ; then
# Number of jobs for egencache, default is number or processors.
egencache_jobnum="$(nproc)"
ebegin "Fetching pre-generated metadata cache for gentoo repository"
rsync -aq rsync://rsync.gentoo.org/gentoo-portage/metadata/md5-cache/ "${PORTDIR}"/metadata/md5-cache/
eend $?
ebegin "Updating metadata cache for repository ${TARGET}"
egencache --jobs=${egencache_jobnum} --repo=${TARGET} --update --update-use-local-desc
eend $?
fi

View File

@ -0,0 +1,15 @@
#!/bin/bash
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
source "/etc/paludis/hooks/set_portdir.bash"
if [[ ${TARGET} == gentoo ]] ; then
DTDDIR=${PORTDIR}/metadata/dtd
ebegin "Updating DTDs"
if [[ -e ${DTDDIR} ]]; then
git -C "${DTDDIR}" pull -q --ff
else
git clone -q https://anongit.gentoo.org/git/data/dtd.git "${DTDDIR}"
fi
eend "$?"
fi

View File

@ -0,0 +1,15 @@
#!/bin/bash
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
source "/etc/paludis/hooks/set_portdir.bash"
if [[ ${TARGET} == gentoo ]] ; then
GLSADIR=${PORTDIR}/metadata/glsa
ebegin "Updating GLSAs"
if [[ -e ${GLSADIR} ]]; then
git -C "${GLSADIR}" pull -q --ff
else
git clone -q https://anongit.gentoo.org/git/data/glsa.git "${GLSADIR}"
fi
eend "$?"
fi

View File

@ -0,0 +1,10 @@
#!/bin/bash
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
source "/etc/paludis/hooks/set_portdir.bash"
if [[ ${TARGET} == gentoo ]] ; then
ebegin "Updating herds.xml"
wget -q -O "${PORTDIR}"/metadata/herds.xml https://api.gentoo.org/packages/herds.xml
eend $?
fi

View File

@ -0,0 +1,15 @@
#!/bin/bash
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
source "/etc/paludis/hooks/set_portdir.bash"
if [[ ${TARGET} == gentoo ]] ; then
NEWSDIR="${PORTDIR}"/metadata/news
ebegin "Updating news items"
if [[ -e ${NEWSDIR} ]]; then
git -C "${NEWSDIR}" pull -q --ff
else
git clone -q https://anongit.gentoo.org/git/data/gentoo-news.git "${NEWSDIR}"
fi
eend $? "Try to remove ${PORTDIR}/metadata/news"
fi

2
keywords.conf Normal file
View File

@ -0,0 +1,2 @@
# global, for stable arch
*/* amd64

View File

@ -0,0 +1,16 @@
# docker
app-emulation/docker ~amd64
dev-go/sanitized-anchor-name ~amd64
dev-go/blackfriday ~amd64
dev-go/go-md2man ~amd64
dev-python/dockerpty ~amd64
dev-python/texttable ~amd64
dev-python/websocket-client ~amd64
dev-python/docker-py ~amd64
app-emulation/docker-compose ~amd64
dev-python/requests ~amd64
dev-python/websocket-client ~amd64
# docker-compose
app-emulation/docker-machine ~amd64
app-emulation/docker-swarm ~amd64

View File

@ -0,0 +1,30 @@
# libressl
app-crypt/signify *
# libressl compatibility
dev-libs/libressl ~amd64
~dev-perl/Net-SSLeay-1.650.0 ~amd64
net-libs/gloox ~amd64
~net-libs/libssh-0.6.4 ~amd64
~www-servers/apache-2.4.10 ~amd64
~app-admin/apache-tools-2.4.10 ~amd64
~dev-libs/apr-1.5.1 ~amd64
dev-python/enum34 ~amd64
mail-filter/spamassassin ~amd64
www-servers/nginx ~amd64
~dev-lang/python-2.7.10:2.7 ~amd64
~dev-lang/python-3.4.3:3.4 ~amd64
~net-misc/wget-1.16.3 ~amd64
# mysql
~dev-db/mysql-5.6.26 ~amd64
~virtual/mysql-5.6 ~amd64
virtual/libmysqlclient ~amd64
# from ca branch
#app-misc/ca-certificates ~amd64
#app-misc/c_rehash ~amd64
dev-libs/openssl ~amd64

View File

@ -0,0 +1,3 @@
app-emulation/open-vm-tools ~amd64
sys-kernel/vanilla-sources ~amd64

1
licenses.conf Normal file
View File

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

1
mirrors.conf Normal file
View File

@ -0,0 +1 @@
* ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo

77
package_env.conf Normal file
View File

@ -0,0 +1,77 @@
# no-as-needed
net-libs/libeXosip no-as-needed
net-libs/libnetfilter_queue no-as-needed
# nodebug
dev-python/pypy no-debug
sys-devel/clang no-debug
sys-devel/llvm no-debug
# no-parallel-build
dev-libs/openssl no-parallel-build
# gcc
app-admin/haskell-updater gcc
app-crypt/gnupg gcc
app-crypt/johntheripper gcc
app-emulation/aqemu gcc
app-emulation/virtualbox gcc
app-emulation/virtualbox-modules gcc
app-emulation/wine gcc
app-text/pandoc gcc
app-text/recode gcc
dev-games/cegui gcc
dev-games/goatee gcc
dev-haskell/* gcc
dev-lang/gprolog gcc
dev-lang/luajit gcc
dev-lang/ruby gcc
dev-lang/spidermonkey gcc
dev-libs/crypto++ gcc
dev-libs/elfutils gcc
dev-libs/libev gcc
dev-libs/libixion gcc
dev-libs/openssl gcc
dev-scheme/guile gcc
dev-util/nemiver gcc
games-board/goatee-gtk gcc
games-engines/gemrb gcc
games-engines/OpenJK gcc
games-engines/openmw gcc
games-fps/unvanquished gcc
games-strategy/0ad gcc
games-strategy/freeorion gcc
games-strategy/liquidwar6 gcc
mail-client/thunderbird gcc
media-gfx/blender gcc
media-libs/devil gcc
media-libs/gd gcc
media-libs/gstreamer gcc
media-libs/id3lib gcc
media-libs/libraw gcc
media-libs/libvorbis gcc
media-libs/mesa gcc
media-libs/sdl2-gfx gcc
media-video/ffmpeg gcc
media-video/guvcview gcc
net-firewall/pglinux gcc
net-libs/libmnl gcc
net-libs/opal gcc
net-p2p/retroshare gcc
sci-mathematics/z3 gcc
sys-apps/coreutils gcc
sys-apps/memtest86+ gcc
sys-apps/paludis gcc
sys-block/thin-provisioning-tools gcc
sys-devel/autogen gcc
sys-devel/binutils gcc
sys-devel/gcc gcc
sys-libs/glibc gcc
sys-power/iasl gcc
www-client/firefox gcc
www-client/torbrowser gcc
x11-base/xorg-server gcc
x11-drivers/nvidia-drivers gcc
x11-libs/cairo gcc

2
package_mask.conf Normal file
View File

@ -0,0 +1,2 @@
# libressl
dev-libs/openssl:0::gentoo

@ -0,0 +1 @@
Subproject commit 5029f82f64d0c9e0947ffa6c23f881265a3834b5

1
profile/eapi Normal file
View File

@ -0,0 +1 @@
5

12
repositories/gentoo.conf Normal file
View File

@ -0,0 +1,12 @@
location = /usr/portage
sync = git+https://github.com/gentoo/gentoo.git --git-clone-option="--depth=1"
# Select your profile normally in portage via 'eselect profile' and then
# check where the file /etc/portage/make.profile points to and copy that information.
# E.g., if it is '../../usr/portage/profiles/default/linux/amd64/13.0', then the variable should be this:
profiles = ${location}/profiles/default/linux/amd64/13.0
distdir = /usr/portage/distfiles
format = e
names_cache = /var/cache/paludis/names
write_cache = /var/cache/paludis/metadata

View File

@ -0,0 +1,4 @@
location = /var/db/pkg/
format = vdb
names_cache = /var/cache/paludis/names
provides_cache = /var/empty

5
repositories/layman.conf Normal file
View File

@ -0,0 +1,5 @@
format = unavailable
name = layman
location = /var/db/paludis/repositories/layman
sync = tar+http://git.exherbo.org/layman_repositories.tar.bz2
importance = -100

View File

@ -0,0 +1,5 @@
format = e
sync = git+https://github.com/gentoo/libressl.git git+file://git@github.com:gentoo/libressl.git
location = /var/db/paludis/repositories/libressl
names_cache = /var/cache/paludis/names
write_cache = /var/cache/paludis/metadata

View File

@ -0,0 +1,3 @@
format = repository
config_filename = /etc/paludis/repositories/%{repository_template_name}.conf
config_template = /etc/paludis/repository.template

5
repository.template Normal file
View File

@ -0,0 +1,5 @@
format = %{repository_template_format}
sync = %{repository_template_sync}
location = /var/db/paludis/repositories/%{repository_template_name}
names_cache = /var/cache/paludis/names
write_cache = /var/cache/paludis/metadata

49
sets/server.conf Normal file
View File

@ -0,0 +1,49 @@
* app-admin/logrotate
* app-admin/sudo
* app-admin/syslog-ng
* app-editors/nano
* app-editors/vim
* app-emulation/docker
* app-emulation/docker-compose
* app-emulation/docker-machine
* app-emulation/docker-swarm
* app-emulation/open-vm-tools
* app-eselect/eselect-package-manager
* app-eselect/eselect-sh
* app-misc/screen
* app-misc/tmux
* app-portage/eix
* app-portage/gentoolkit
* app-portage/pfl
* app-portage/portage-utils
* app-shells/bash-completion
* app-shells/dash
* app-shells/rssh
* app-shells/zsh
* dev-lang/go
* dev-libs/libressl
* dev-libs/openssl
* dev-vcs/git
* dev-vcs/tig
* net-analyzer/hping
* net-analyzer/netcat
* net-analyzer/nmap
* net-analyzer/tcpdump
* net-analyzer/wireshark
* net-dns/bind-tools
* net-firewall/iptables
* net-misc/dhcpcd
* net-misc/openntpd
* net-misc/openssh
* sys-apps/etckeeper
* sys-apps/mlocate
* sys-apps/paludis
* sys-boot/grub:2
* sys-devel/clang
* sys-fs/btrfs-progs
* sys-fs/eudev
* sys-kernel/vanilla-sources
* sys-process/cronie
* sys-process/htop
* sys-process/lsof
* www-client/pybugz

8
use.conf Normal file
View File

@ -0,0 +1,8 @@
*/* acl bash-completion ipv6 kmod openrc pcre readline unicode zlib pam ssl sasl bzip2 urandom crypt tcpd -acpi -cairo -consolekit -cups -dbus -dri -gnome -gnutls -gtk -gtk2 -gtk3 -nls -ogg -opengl -pdf -policykit -qt3support -qt4 -qt5 -sdl -sound -systemd -truetype -vim -vim-syntax -wayland -X
*/* ABI_X86: -* 64
*/* CURL_SSL: -* -polarssl openssl
*/* LINGUAS: -* en
*/* PYTHON_TARGETS: -* python2_7 python3_4
*/* PYTHON_SINGLE_TARGET: -* python2_7
*/* BUILD_OPTIONS: symbols=compress

View File

@ -0,0 +1 @@
app-emulation/docker lxc btrfs

2
use.conf.d/system.conf Normal file
View File

@ -0,0 +1,2 @@
sys-devel/llvm clang
sys-apps/paludis search-index xml