system/cfengine: Fix build when avahi installed.
Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
parent
2ad053b8f5
commit
b5b0f27090
|
@ -2,3 +2,6 @@ cfengine (Automate and manage your IT infrastructure)
|
|||
|
||||
CFEngine is a configuration management and automation framework that
|
||||
lets you securely manage your mission critical IT infrastructure.
|
||||
|
||||
Optional dependency: if avahi is installed, cfengine will be built
|
||||
with support for it.
|
||||
|
|
|
@ -22,6 +22,9 @@
|
|||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
# 20220405 bkw: Modified by SlackBuilds.org, BUILD=2:
|
||||
# - fix build when avahi is installed, and document avahi as optional.
|
||||
|
||||
# 20220211 bkw: Modified by SlackBuilds.org: update for v3.15.2 since
|
||||
# the previous version wouldn't build on Slackware 15.0.
|
||||
|
||||
|
@ -29,7 +32,7 @@ cd $(dirname $0) ; CWD=$(pwd)
|
|||
|
||||
PRGNAM=cfengine
|
||||
VERSION=${VERSION:-3.15.2}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
||||
|
@ -79,6 +82,8 @@ find -L . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
|
||||
|
||||
SLKCFLAGS+=" -fcommon"
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
|
@ -93,7 +98,7 @@ CXXFLAGS="$SLKCFLAGS" \
|
|||
--enable-shared=yes \
|
||||
--build=$ARCH-slackware-linux
|
||||
|
||||
make
|
||||
make V=1
|
||||
make install-strip DESTDIR=$PKG
|
||||
rm -f $PKG/usr/lib*/*.la
|
||||
|
||||
|
|
Loading…
Reference in New Issue