You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.6 KiB
46 lines
1.6 KiB
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
# |
|
# Filename: package/.../s6-linux-utils/s6-linux-utils.conf |
|
# Copyright (C) 2011 The OpenSDE Project |
|
# |
|
# More information can be found in the files COPYING and README. |
|
# |
|
# This program is free software; you can redistribute it and/or modify |
|
# it under the terms of the GNU General Public License as published by |
|
# the Free Software Foundation; version 2 of the License. A copy of the |
|
# GNU General Public License can be found in the file COPYING. |
|
# --- SDE-COPYRIGHT-NOTE-END --- |
|
|
|
if [ "$prefix_auto" = 1 ]; then |
|
prefix="usr" |
|
set_confopt |
|
fi |
|
|
|
# execline is following slashpackage confentions |
|
srcdir=admin/$pkg-$ver |
|
|
|
s6_linux_utils_conf() { |
|
pkgprefix -t skalibs |
|
echo "$( pkgprefix -r libdir skalibs )" > conf-compile/path-library |
|
echo "$( pkgprefix -r libdir skalibs )" > conf-compile/path-library.so |
|
echo "$( pkgprefix -r includedir skalibs )" > conf-compile/path-include |
|
echo "$( pkgprefix -r skalibs )/sysdeps" > conf-compile/import |
|
pkgprefix -t execline |
|
echo "$( pkgprefix -r libdir execline )" >> conf-compile/path-library |
|
echo "$( pkgprefix -r includedir execline )" >> conf-compile/path-include |
|
|
|
} |
|
hook_add preconf 1 's6_linux_utils_conf' |
|
|
|
s6_linux_utils_install() { |
|
cp -avp command/* $root$bindir |
|
cp -avp doc/* $root$docdir |
|
} |
|
hook_add postmake 9 's6_linux_utils_install' |
|
|
|
# s6-devd needs 'struct ucred' which is only available in glibc when |
|
# defining _GNU_SOURCE |
|
if [ $SDECFG_LIBC='glibc' ]; then |
|
var_append CC_WRAPPER_APPEND ' ' "-D_GNU_SOURCE" |
|
fi
|
|
|