<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         bootstrap="./tests/Bootstrap.php"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnError="false"
         stopOnFailure="false"
         syntaxCheck="true"
         strict="false"
         verbose="true">
>
    <testsuites>
        <testsuite name="Mockery Test Suite">
            <directory suffix="Test.php">./tests</directory>
            <exclude>./tests/Mockery/MockingVariadicArgumentsTest.php</exclude>
            <file phpVersion="5.6.0" phpVersionOperator=">=">./tests/Mockery/MockingVariadicArgumentsTest.php</file>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">./library/</directory>
        </whitelist>
    </filter>
    <listeners>
        <listener
            class='Mockery\Adapter\Phpunit\TestListener'
            file='./library/Mockery/Adapter/Phpunit/TestListener.php'/>
    </listeners>
</phpunit>

Update phpunit config; also removes deprecated strict setting

<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         bootstrap="./tests/Bootstrap.php"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnError="false"
         stopOnFailure="false"
         syntaxCheck="true"
         verbose="true">
>
    <testsuites>
        <testsuite name="Mockery Test Suite">
            <directory suffix="Test.php">./tests</directory>
            <exclude>./tests/Mockery/MockingVariadicArgumentsTest.php</exclude>
            <file phpVersion="5.6.0" phpVersionOperator=">=">./tests/Mockery/MockingVariadicArgumentsTest.php</file>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">./library/</directory>
        </whitelist>
        <blacklist>
            <file>./library/Mockery/Adapter/Phpunit/MockeryPHPUnitIntegration.php</file>
        </blacklist>
    </filter>
    <listeners>
        <listener
            class='Mockery\Adapter\Phpunit\TestListener'
            file='./library/Mockery/Adapter/Phpunit/TestListener.php'/>
    </listeners>
</phpunit>


<?xml version="1.0" encoding="UTF-8"?>

<phpunit colors="true" bootstrap="./vendor/autoload.php">
    <testsuites>
        <testsuite name="FrontendBundle Test Suite">
            <directory>./Tests</directory>
            <exclude>./Tests/Functional/TestApp</exclude>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">./</directory>
            <exclude>
                <directory>./vendor</directory>
                <directory>./Tests</directory>
                <directory>./Resources</directory>
                <directory>./Asset</directory>
                <directory>./Command/Options/Legacy</directory>
            </exclude>
        </whitelist>
    </filter>
    <php>
        <!-- See https://github.com/symfony/symfony/issues/25362 -->
        <env name="SHELL_VERBOSITY" value="1"/>
    </php>
</phpunit>

Remove non-existent paths from coverage report blacklist

<?xml version="1.0" encoding="UTF-8"?>

<phpunit colors="true" bootstrap="./vendor/autoload.php">
    <testsuites>
        <testsuite name="FrontendBundle Test Suite">
            <directory>./Tests</directory>
            <exclude>./Tests/Functional/TestApp</exclude>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">./</directory>
            <exclude>
                <directory>./vendor</directory>
                <directory>./Tests</directory>
                <directory>./Resources</directory>
            </exclude>
        </whitelist>
    </filter>
    <php>
        <!-- See https://github.com/symfony/symfony/issues/25362 -->
        <env name="SHELL_VERBOSITY" value="1"/>
    </php>
</phpunit>


#
# $Id: Makefile,v 1.1 1998/03/12 02:55:20 jdp Exp $
#

.include "../Makefile.inc0"

.PATH: ${SRCDIR}/ld

PROG=		ld
SCRIPTDIR=	/usr/libdata/ldscripts
SRCS+=		ldcref.c ldctor.c ldemul.c ldexp.c ldfile.c \
		ldgram.y ldlang.c ldlex.l ldmain.c ldmisc.c \
		ldver.c ldwrite.c lexsup.c mri.c
CFLAGS+=	-DDEFAULT_EMULATION=\"${EMULATION}\"
CFLAGS+=	-DSCRIPTDIR=\"${DESTDIR}/usr/libdata\"
CFLAGS+=	-DTARGET=\"${TARGET}\"
CFLAGS+=	-I${SRCDIR}/ld
LDADD+=		-L${RELTOP}/libbfd -lbfd
LDADD+=		-L${RELTOP}/libiberty -liberty
CLEANDIRS+=	ldscripts

afterinstall:
	${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
	    ${LDSCRIPTS:S|^|ldscripts/|} ${DESTDIR}${SCRIPTDIR}

.include <bsd.prog.mk>

Work out the list of emulations based on the cross-architectures defined. The TARGET is now set from an included makefile.

#
# $Id: Makefile,v 1.2 1998/05/04 16:31:41 bde Exp $
#

.include "../Makefile.inc0"

.PATH: ${SRCDIR}/ld

PROG=		ld
SCRIPTDIR=	/usr/libdata/ldscripts
SRCS+=		ldcref.c ldctor.c ldemul.c ldexp.c ldfile.c \
		ldgram.y ldlang.c ldlex.l ldmain.c ldmisc.c \
		ldver.c ldwrite.c lexsup.c mri.c
CFLAGS+=	-DSCRIPTDIR=\"${DESTDIR}/usr/libdata\"
CFLAGS+=	-I${SRCDIR}/ld
LDADD+=		-L${RELTOP}/libbfd -lbfd
LDADD+=		-L${RELTOP}/libiberty -liberty
CLEANDIRS+=	ldscripts

beforedepend: ldemul-list.h

EMXFR=
EMLST=
.for _e in ${EMS}
EMXFR+= extern ld_emulation_xfer_type ${_e};
EMLST+=	&${_e},
.endfor

ldemul-list.h:
	echo "${EMXFR}" > ldemul-list.h
	echo "#define EMULATION_LIST ${EMLST} 0" >> ldemul-list.h

afterinstall:
	${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
	    ${LDSCRIPTS:S|^|ldscripts/|} ${DESTDIR}${SCRIPTDIR}

.include <bsd.prog.mk>


<!-- remove 'erb[silent]:contains("unless filters.empty?")' closing_selector 'erb[silent]:contains("end")' -->

Remove price filter from sidebar.

<!-- remove 'erb[silent]:contains("unless filters.empty?")' closing_selector 'erb[silent]:contains("end")' -->
<!-- remove 'erb[silent]:contains("end")' -->


# build stage
FROM node:lts-alpine@sha256:aeb57f10e71d0d7c8e8b9821faf1793e615483bee5fc7dce90f8c82731f80827 AS build-stage

COPY common /common

WORKDIR /app
COPY frontend/package*.json ./
RUN npm ci
COPY frontend .
RUN npm run build

# production stage
FROM nginx:stable-alpine@sha256:ec3f6e4587a2053f406b1b4e027c260e82e4e32c256c04e798b52cb4f877e688 as production-stage
RUN mkdir /app
WORKDIR /app
COPY --from=build-stage /app/dist /app
COPY .docker-hub/frontend/nginx.conf /etc/nginx/nginx.conf

Update node:lts-alpine Docker digest to c00a7d1

# build stage
FROM node:lts-alpine@sha256:c00a7d1764a4d9a570d85cb1d2867de2af50b71462ee8737eed52b74718478d0 AS build-stage

COPY common /common

WORKDIR /app
COPY frontend/package*.json ./
RUN npm ci
COPY frontend .
RUN npm run build

# production stage
FROM nginx:stable-alpine@sha256:ec3f6e4587a2053f406b1b4e027c260e82e4e32c256c04e798b52cb4f877e688 as production-stage
RUN mkdir /app
WORKDIR /app
COPY --from=build-stage /app/dist /app
COPY .docker-hub/frontend/nginx.conf /etc/nginx/nginx.conf


GIT_TAG ?= master
TAG ?= latest

.PHONY: all image-tier1 image-tier2 image-tier3

all: image-tier1 image-tier2 image-tier3

image-tier1:
	cd tier1 && docker build --build-arg TAG="${GIT_TAG}" -t dmoj/judge-tier1 -t dmoj/judge-tier1:$(TAG) .

image-tier2:
	cd tier2 && docker build --build-arg TAG="${GIT_TAG}" -t dmoj/judge-tier2 -t dmoj/judge-tier2:$(TAG) .

image-tier3:
	cd tier3 && docker build --build-arg TAG="${GIT_TAG}" -t dmoj/judge-tier3 -t dmoj/judge-tier3:$(TAG) .

Rename image-* targets to judge-*

GIT_TAG ?= master
TAG ?= latest

.PHONY: all judge-tier1 judge-tier2 judge-tier3

all: judge-tier1 judge-tier2 judge-tier3

judge-tier1:
	cd tier1 && docker build --build-arg TAG="${GIT_TAG}" -t dmoj/judge-tier1 -t dmoj/judge-tier1:$(TAG) .

judge-tier2:
	cd tier2 && docker build --build-arg TAG="${GIT_TAG}" -t dmoj/judge-tier2 -t dmoj/judge-tier2:$(TAG) .

judge-tier3:
	cd tier3 && docker build --build-arg TAG="${GIT_TAG}" -t dmoj/judge-tier3 -t dmoj/judge-tier3:$(TAG) .


insert_after 'erb[loud]:contains("<%= line_item.display_amount.to_html unless line_item.quantity.nil? %>")'
inc. VAT

Add 'inc. VAT' to cart total.

<!-- insert_after 'erb[loud]:contains("<%= line_item.display_amount.to_html unless line_item.quantity.nil? %>")' -->
inc. VAT


# $Id: Makefile,v 1.3 1995/02/03 03:44:41 wpaul Exp $
# @(#)Makefile	8.3 (Berkeley) 4/2/94

PROG=	yppasswdd
MAN8=	yppasswdd.8

SRCS=	yppasswdd.c yppasswd_xdr.c update.c pw_copy.c pw_util.c

LDADD=	-lcrypt
CFLAGS+=-DCRYPT -I${.CURDIR} -I${.CURDIR}/../../../usr.sbin/vipw \
	-I${.CURDIR}/../../../usr.bin/chpass
CFLAGS+=-DVERSION=\"0.5\" -DYPLIBDIR=\"/usr/libexec\" -D_GNU_SOURCE

afterinstall:
	install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
		${.CURDIR}/yppwupdate \
		${DESTDIR}/usr/libexec/yppwupdate

.include <bsd.prog.mk>

Remove yppasswd_xdr.c and take out references to if from Makefile: use -lrpcsvc instead.

# $Id: Makefile,v 1.4 1995/02/15 04:35:55 wpaul Exp $
# @(#)Makefile	8.3 (Berkeley) 4/2/94

PROG=	yppasswdd
MAN8=	yppasswdd.8

SRCS=	yppasswdd.c update.c pw_copy.c pw_util.c

LDADD=	-lcrypt -lrpcsvc
CFLAGS+=-DCRYPT -I${.CURDIR} -I${.CURDIR}/../../../usr.sbin/vipw \
	-I${.CURDIR}/../../../usr.bin/chpass
CFLAGS+=-DVERSION=\"0.5\" -DYPLIBDIR=\"/usr/libexec\" -D_GNU_SOURCE

afterinstall:
	install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
		${.CURDIR}/yppwupdate \
		${DESTDIR}/usr/libexec/yppwupdate

.include <bsd.prog.mk>


#	Makefile for pccardd

PROG=	pccardd
SRCS=	cardd.c file.c util.c readcis.c printcis.c
MAN8=	pccardd.8
MAN5=	pccard.conf.5
DPADD=	${LIBUTIL}
LDADD=	-lutil
CFLAGS=	-I${.CURDIR} -I${.CURDIR}/../pccardc
.PATH:	${.CURDIR}/../pccardc

.include <bsd.prog.mk>

Use CFLAGS += instead of setting it directly.

#	Makefile for pccardd

PROG=	pccardd
SRCS=	cardd.c file.c util.c readcis.c printcis.c
MAN8=	pccardd.8
MAN5=	pccard.conf.5
DPADD=	${LIBUTIL}
LDADD=	-lutil
CFLAGS+=	-I${.CURDIR} -I${.CURDIR}/../pccardc

.include <bsd.prog.mk>
.PATH:	${.CURDIR}/../pccardc


FROM alanz/debian-base-64

MAINTAINER alan.zimm@gmail.com

ENV DEBIAN_FRONTEND noninteractive

####### GHC 7.4.2 ######################

RUN wget http://www.haskell.org/ghc/dist/7.4.2/ghc-7.4.2-x86_64-unknown-linux.tar.bz2

RUN tar xvfj ghc-7.4.2-x86_64-unknown-linux.tar.bz2

RUN cd ghc-7.4.2 && ./configure
RUN cd ghc-7.4.2 && make install

Clean up after the GHC 7.4.2 install

FROM alanz/debian-base-64

MAINTAINER alan.zimm@gmail.com

ENV DEBIAN_FRONTEND noninteractive

####### GHC 7.4.2 ######################

RUN wget http://www.haskell.org/ghc/dist/7.4.2/ghc-7.4.2-x86_64-unknown-linux.tar.bz2

RUN tar xvfj ghc-7.4.2-x86_64-unknown-linux.tar.bz2

RUN cd ghc-7.4.2 && ./configure
RUN cd ghc-7.4.2 && make install

# Clean up
RUN rm -fr ghc-7.4.2-x86_64-unknown-linux.tar.bz2 ghc-7.4.2


<!--
  insert_after 'code[erb-loud]:contains("continue")'
-->
<% if @current_user and @current_user.has_role? "dibs_referral" %>
  <%= mail_to t(:friend), t(:send_referral), subject: t(:cart_referral_subject), body: "http://#{Spree::Config[:site_url]}/dibs_referral?dibs_referral=#{URI::encode_www_form_component @current_user.email}&#{@order.dibs_referral_line_items.to_param}", class: 'button gray' %>
<% end %>

Fix has_role to has_spree_role for 1.2

<!--
  insert_after 'code[erb-loud]:contains("continue")'
-->
<% if @current_user and @current_user.has_spree_role? "dibs_referral" %>
  <%= mail_to t(:friend), t(:send_referral), subject: t(:cart_referral_subject), body: "http://#{Spree::Config[:site_url]}/dibs_referral?dibs_referral=#{URI::encode_www_form_component @current_user.email}&#{@order.dibs_referral_line_items.to_param}", class: 'button gray' %>
<% end %>


## This file should be placed in the root directory of your project.
## Then modify the CMakeLists.txt file in the root directory of your
## project to incorporate the testing dashboard.
##
## # The following are required to submit to the CDash dashboard:
##   ENABLE_TESTING()
##   INCLUDE(CTest)

set(DART_TESTING_TIMEOUT "4800")

set(CTEST_PROJECT_NAME "@NC_CTEST_PROJECT_NAME@")
set(CTEST_NIGHTLY_START_TIME "00:00:00 EST")

set(CTEST_DROP_METHOD "http")
set(CTEST_DROP_SITE "my.cdash.org")
set(CTEST_DROP_LOCATION "/submit.php?project=netcdf-stagic")
set(CTEST_DROP_SITE_CDASH TRUE)

Revert changes to CTest config file.

## This file should be placed in the root directory of your project.
## Then modify the CMakeLists.txt file in the root directory of your
## project to incorporate the testing dashboard.
##
## # The following are required to submit to the CDash dashboard:
##   ENABLE_TESTING()
##   INCLUDE(CTest)

set(DART_TESTING_TIMEOUT "4800")

set(CTEST_PROJECT_NAME "@NC_CTEST_PROJECT_NAME@")
set(CTEST_NIGHTLY_START_TIME "00:00:00 EST")

set(CTEST_DROP_METHOD "http")
set(CTEST_DROP_SITE "@NC_CTEST_DROP_SITE@")
set(CTEST_DROP_LOCATION "@NC_CTEST_DROP_LOC_PREFIX@/submit.php?project=@NC_CTEST_PROJECT_NAME@")
set(CTEST_DROP_SITE_CDASH TRUE)


SET(CTEST_EXTRA_COVERAGE_GLOB "*.php")

SET(CTEST_CUSTOM_COVERAGE_EXCLUDE
  ${CTEST_CUSTOM_COVERAGE_EXCLUDE}
  "/tests/"
  "/testing/"
  "/append_coverage.php"
  "/prepend_coverage.php"
  )

Improve coverage reporting accuracy. On Windows, on dash19, the "/tests/" files were still being reported in the overall coverage results. Correct the exclude regular expression so that full path file names with "\" in them may also match the exclude expression.

SET(CTEST_EXTRA_COVERAGE_GLOB "*.php")

SET(CTEST_CUSTOM_COVERAGE_EXCLUDE
  ${CTEST_CUSTOM_COVERAGE_EXCLUDE}
  "[/\\\\]tests[/\\\\]"
  "[/\\\\]testing[/\\\\]"
  "[/\\\\]append_coverage.php"
  "[/\\\\]prepend_coverage.php"
  )


<?xml version="1.0" encoding="UTF-8"?>

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
         backupGlobals="false"
         colors="true"
         bootstrap="vendor/autoload.php"
>
    <php>
        <ini name="error_reporting" value="-1" />
    </php>

    <testsuites>
        <testsuite name="Symfony HttpKernel Component Test Suite">
            <directory>./Tests/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>./</directory>
            <exclude>
                <directory>./Tests</directory>
                <directory>./vendor</directory>
            </exclude>
        </whitelist>
    </filter>

    <listeners>
        <listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener">
            <arguments>
                <array>
                    <element><string>Symfony\Component\HttpFoundation</string></element>
                </array>
            </arguments>
        </listener>
    </listeners>
</phpunit>

Test DNS Email constraints using checkdnsrr() mock

<?xml version="1.0" encoding="UTF-8"?>

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
         backupGlobals="false"
         colors="true"
         bootstrap="vendor/autoload.php"
>
    <php>
        <ini name="error_reporting" value="-1" />
    </php>

    <testsuites>
        <testsuite name="Symfony HttpKernel Component Test Suite">
            <directory>./Tests/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>./</directory>
            <exclude>
                <directory>./Tests</directory>
                <directory>./vendor</directory>
            </exclude>
        </whitelist>
    </filter>

    <listeners>
        <listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener">
            <arguments>
                <array>
                    <element key="time-sensitive"><string>Symfony\Component\HttpFoundation</string></element>
                </array>
            </arguments>
        </listener>
    </listeners>
</phpunit>


<?xml version="1.0" encoding="UTF-8"?>

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.4/phpunit.xsd"
    backupGlobals="false"
    backupStaticAttributes="false"
    colors="true"
    convertErrorsToExceptions="true"
    convertNoticesToExceptions="true"
    convertWarningsToExceptions="true"
    processIsolation="false"
    stopOnFailure="false"
    syntaxCheck="false"
    bootstrap="./tests/bootstrap.php">

    <testsuites>
        <testsuite name="Humbug Test Suite">
            <directory>./tests/Humbug/</directory>
            <exclude>./tests/Humbug/Test/Adapter/_files</exclude>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>./src/Humbug/</directory>
        </whitelist>
    </filter>

</phpunit>

Check whether its the path fiddling with Travis builds...

<?xml version="1.0" encoding="UTF-8"?>

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.4/phpunit.xsd"
    backupGlobals="false"
    backupStaticAttributes="false"
    colors="true"
    convertErrorsToExceptions="true"
    convertNoticesToExceptions="true"
    convertWarningsToExceptions="true"
    processIsolation="false"
    stopOnFailure="false"
    syntaxCheck="false"
    bootstrap="./tests/bootstrap.php">

    <testsuites>
        <testsuite name="Humbug Test Suite">
            <directory>tests/Humbug/</directory>
            <exclude>tests/Humbug/Test/Adapter/_files</exclude>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>./src/Humbug/</directory>
        </whitelist>
    </filter>

</phpunit>


<?xml version="1.0" encoding="UTF-8"?>
<phpunit
        bootstrap="tests/bootstrap.php"
        colors="true"
        convertErrorsToExceptions="true"
        convertNoticesToExceptions="true"
        convertWarningsToExceptions="true"
        processIsolation="false"
        stopOnFailure="false"
        syntaxCheck="false"
        verbose="true"
        >
    <testsuites>
        <testsuite name="helpers">
            <directory>./tests/Helpers</directory>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">./src</directory>
            <exclude>
                <directory suffix=".php">./vendor</directory>
            </exclude>
        </whitelist>
    </filter>
    <logging>
        <log type="coverage-html" target="./coverage" charset="UTF-8" hightlight="true" />
    </logging>
</phpunit>

Clean up coverage configuration file.

<?xml version="1.0" encoding="UTF-8"?>
<phpunit
        bootstrap="tests/bootstrap.php"
        colors="true"
        convertErrorsToExceptions="true"
        convertNoticesToExceptions="true"
        convertWarningsToExceptions="true"
        processIsolation="false"
        stopOnFailure="false"
        syntaxCheck="false"
        verbose="true"
        >
    <testsuites>
        <testsuite name="helpers">
            <directory>./tests/Helpers</directory>
        </testsuite>
        <testsuite name="users">
            <directory>./tests/Users</directory>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist>
            <directory suffix=".php">./src</directory>
            <exclude>
                <directory suffix=".php">./vendor</directory>
            </exclude>
        </whitelist>
    </filter>
    <logging>
        <log type="coverage-html" target="./coverage" charset="UTF-8" hightlight="true" />
    </logging>
</phpunit>


# $FreeBSD$

DISTRIBUTION=	compat4x

LIBCOMPATDIR=	${LIBDIR}/compat

LIBS=	\
	libc.so.4 \
	libc_r.so.4 \
	libcrypto.so.1 \
	libdialog.so.4 \
	libedit.so.3 \
	libfetch.so.2 \
	libftpio.so.5 \
	libhistory.so.4 \
	libncurses.so.5 \
	libreadline.so.4 \
	libssl.so.1 \
	libstdc++.so.3 \
	libutil.so.3 \
	libwrap.so.3 \
	libxpg4.so.3

CLEANFILES+=	${LIBS}

all:	${LIBS}

.for lib in ${LIBS}
${lib}:	${lib}.gz.uu
	uudecode -p ${.CURDIR}/${lib}.gz.uu | gunzip > ${lib}
.endfor

beforeinstall:
	${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} ${LIBS} \
		${DESTDIR}${LIBCOMPATDIR}

# Get all the fruit, even though we don't set PROG.
# XXX bsd.lib.mk has fruitflies, e.g., it fails if LIBS is empty.
.include <bsd.prog.mk>

Remove these libs that are the samed .so version as the ones in 5-CURRENT. These libs will not be used [sitting in /usr/lib/compat] as the -current ones in /usr/lib will be found first by ld-elf.so.1.

# $FreeBSD$

DISTRIBUTION=	compat4x

LIBCOMPATDIR=	${LIBDIR}/compat

LIBS=	\
	libc.so.4 \
	libc_r.so.4 \
	libcrypto.so.1 \
	libssl.so.1

CLEANFILES+=	${LIBS}

all:	${LIBS}

.for lib in ${LIBS}
${lib}:	${lib}.gz.uu
	uudecode -p ${.CURDIR}/${lib}.gz.uu | gunzip > ${lib}
.endfor

beforeinstall:
	${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} ${LIBS} \
		${DESTDIR}${LIBCOMPATDIR}

# Get all the fruit, even though we don't set PROG.
# XXX bsd.lib.mk has fruitflies, e.g., it fails if LIBS is empty.
.include <bsd.prog.mk>


# $FreeBSD$

GPROFDIR=	${.CURDIR}/../../../contrib/gperf

.PATH: ${GPROFDIR}/src ${GPROFDIR}/lib ${GPROFDIR}/doc

SUBDIR=	doc

PROG_CXX=	gperf
SRCS=	bool-array.cc gen-perf.cc hash-table.cc iterator.cc key-list.cc \
	list-node.cc main.cc new.cc options.cc read-line.cc trace.cc \
	vectors.cc version.cc
SRCS+=	hash.cc getopt.c getopt1.c

CXXFLAGS+=	-I${GPROFDIR}/lib -I${.CURDIR}

.include <bsd.prog.mk>

Remove getopt*.c, we already have compatible getopt_long() in libc

# $FreeBSD$

GPROFDIR=	${.CURDIR}/../../../contrib/gperf

.PATH: ${GPROFDIR}/src ${GPROFDIR}/lib ${GPROFDIR}/doc

SUBDIR=	doc

PROG_CXX=	gperf
SRCS=	bool-array.cc gen-perf.cc hash-table.cc iterator.cc key-list.cc \
	list-node.cc main.cc new.cc options.cc read-line.cc trace.cc \
	vectors.cc version.cc
SRCS+=  hash.cc

CXXFLAGS+=	-I${GPROFDIR}/lib -I${.CURDIR}

.include <bsd.prog.mk>


#!/bin/sh
#
# Wrapper for DHCPD which has a habit of dying.
#
case "$1" in
	start)
		# limit to control network
		cnetif=
		if [ -x @prefix@/sbin/findif ]; then
		    cnetif=`@prefix@/sbin/findif -i @BOSSNODE_IP@`
		fi
		if [ -x @prefix@/sbin/daemon_wrapper ]; then
			echo -n " dhcpd wrapper"
			@prefix@/sbin/daemon_wrapper \
			  /usr/local/sbin/dhcpd -f $cnetif
		fi
		;;
	stop)
		if [ -r /var/run/dhcpd_wrapper.pid ]; then
			kill `cat /var/run/dhcpd_wrapper.pid`
		fi
		;;
	*)
		echo ""
		echo "Usage: `basename $0` { start | stop }"
		echo ""
		exit 64
		;;
esac

Adjust previous fix to compensate for elabinelab (which must continue to listen on the "real" control net).

#!/bin/sh
#
# Wrapper for DHCPD which has a habit of dying.
#
elabinelab="@ELABINELAB@"
case "$1" in
	start)
		# limit to control network
		cnetif=
		if [ $elabinelab != "1" -a -x @prefix@/sbin/findif ]; then
		    cnetif=`@prefix@/sbin/findif -i @BOSSNODE_IP@`
		fi
		if [ -x @prefix@/sbin/daemon_wrapper ]; then
			echo -n " dhcpd wrapper"
			@prefix@/sbin/daemon_wrapper \
			  /usr/local/sbin/dhcpd -f $cnetif
		fi
		;;
	stop)
		if [ -r /var/run/dhcpd_wrapper.pid ]; then
			kill `cat /var/run/dhcpd_wrapper.pid`
		fi
		;;
	*)
		echo ""
		echo "Usage: `basename $0` { start | stop }"
		echo ""
		exit 64
		;;
esac


# $FreeBSD$

PROG=	info
MAN1=	info.1
MAN5=	info.5 texinfo.5

SRCS=	dir.c display.c doc.c dribble.c echo-area.c filesys.c \
	footnotes.c gc.c indices.c info-utils.c info.c infodoc.c \
	infomap.c m-x.c man.c nodemenu.c nodes.c search.c session.c \
	signals.c terminal.c tilde.c variables.c window.c

CFLAGS+= -DINFODIR=\"${INFODIR}:/usr/local/info:.\"

DPADD+=	${LIBTERMCAP} ${LIBTXI}
LDADD+=	-ltermcap ${LIBTXI}

.include <bsd.prog.mk>

.PATH:	${TXIDIR}/info ${TXIDIR}/doc

Add additional path for info to /usr/X11R6/info. This will allow people to actually look at the info files for gdk and gtk for example.

# $FreeBSD$

PROG=	info
MAN1=	info.1
MAN5=	info.5 texinfo.5

SRCS=	dir.c display.c doc.c dribble.c echo-area.c filesys.c \
	footnotes.c gc.c indices.c info-utils.c info.c infodoc.c \
	infomap.c m-x.c man.c nodemenu.c nodes.c search.c session.c \
	signals.c terminal.c tilde.c variables.c window.c

CFLAGS+= -DINFODIR=\"${INFODIR}:/usr/local/info:/usr/X11R6/info:.\"

DPADD+=	${LIBTERMCAP} ${LIBTXI}
LDADD+=	-ltermcap ${LIBTXI}

.include <bsd.prog.mk>

.PATH:	${TXIDIR}/info ${TXIDIR}/doc


<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php"
         colors="true">
  <testsuites>
    <testsuite>
      <directory>test</directory>
    </testsuite>
  </testsuites>
  <filter>
    <whitelist>
      <directory suffix=".php">src</directory>
      <exclude>
        <directory suffix="Interface.php">src/</directory>
      </exclude>
    </whitelist>
  </filter>
</phpunit>

Add missing name attribute to PHPUnit testsuite element.

<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php"
         colors="true">
  <testsuites>
    <testsuite name="tests">
      <directory>test</directory>
    </testsuite>
  </testsuites>
  <filter>
    <whitelist>
      <directory suffix=".php">src</directory>
      <exclude>
        <directory suffix="Interface.php">src/</directory>
      </exclude>
    </whitelist>
  </filter>
</phpunit>


<phpunit bootstrap="./phpunit.php">
    <testsuites>
        <testsuite>
            <directory>./tests</directory>
        </testsuite>
    </testsuites>
</phpunit>

Add support for phpunit 5 code coverage

<phpunit bootstrap="./phpunit.php">
    <testsuites>
        <testsuite>
            <directory>./tests</directory>
        </testsuite>
    </testsuites>
    <filter>
      <whitelist processUncoveredFilesFromWhitelist="true">
        <directory suffix=".php">./src</directory>
      </whitelist>
    </filter>
</phpunit>


<?xml version="1.0" encoding="utf-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         bootstrap="test/bootstrap.php"
         xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
  <coverage processUncoveredFiles="true">
    <include>
      <directory>./</directory>
    </include>
    <exclude>
      <directory>./test</directory>
      <directory>./vendor</directory>
    </exclude>
  </coverage>
  <testsuites>
    <testsuite name="php-tmdb-symfony Test Suite">
      <directory suffix="Test.php">./test/</directory>
    </testsuite>
  </testsuites>
</phpunit>

Remove examples folder from coverage.

<?xml version="1.0" encoding="utf-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         bootstrap="test/bootstrap.php"
         xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
  <coverage processUncoveredFiles="true">
    <include>
      <directory>./</directory>
    </include>
    <exclude>
      <directory>./examples</directory>
      <directory>./test</directory>
      <directory>./vendor</directory>
    </exclude>
  </coverage>
  <testsuites>
    <testsuite name="php-tmdb-symfony Test Suite">
      <directory suffix="Test.php">./test/</directory>
    </testsuite>
  </testsuites>
</phpunit>


<?xml version="1.0" encoding="UTF-8"?><phpunit
    colors="true"
    processIsolation="false"
    stopOnFailure="false"
    syntaxCheck="false"
    bootstrap="./tests/bootstrap.php"
    >
    <php>
        <ini name="memory_limit" value="-1"/>
        <ini name="apc.enable_cli" value="1"/>
    </php>

    <!-- Add any additional test suites you want to run here -->
    <testsuites>
        <testsuite name="Version Test Suite">
            <directory>./tests/TestCase</directory>
        </testsuite>
    </testsuites>

    <filter>
        <blacklist>
            <directory suffix=".php">./docs</directory>
            <directory suffix=".php">./vendor</directory>
            <file>./tests/bootstrap.php</file>
        </blacklist>
    </filter>

    <!-- Setup a listener for fixtures -->
    <listeners>
        <listener
        class="\Cake\TestSuite\Fixture\FixtureInjector"
        file="./vendor/cakephp/cakephp/src/TestSuite/Fixture/FixtureInjector.php">
            <arguments>
                <object class="\Cake\TestSuite\Fixture\FixtureManager" />
            </arguments>
        </listener>
    </listeners>

</phpunit>

Fix code coverage under phpunit 5.5

<?xml version="1.0" encoding="UTF-8"?><phpunit
    colors="true"
    processIsolation="false"
    stopOnFailure="false"
    syntaxCheck="false"
    bootstrap="./tests/bootstrap.php"
    >
    <php>
        <ini name="memory_limit" value="-1"/>
        <ini name="apc.enable_cli" value="1"/>
    </php>

    <!-- Add any additional test suites you want to run here -->
    <testsuites>
        <testsuite name="Version Test Suite">
            <directory>./tests/TestCase</directory>
        </testsuite>
    </testsuites>

    <filter>
        <blacklist>
            <directory suffix=".php">./docs</directory>
            <directory suffix=".php">./vendor</directory>
            <file>./tests/bootstrap.php</file>
        </blacklist>
        <!-- this is required, even if empty, until
        https://github.com/sebastianbergmann/phpunit/issues/1872
        is resolved -->
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">src</directory>
        </whitelist>
    </filter>

    <!-- Setup a listener for fixtures -->
    <listeners>
        <listener
        class="\Cake\TestSuite\Fixture\FixtureInjector"
        file="./vendor/cakephp/cakephp/src/TestSuite/Fixture/FixtureInjector.php">
            <arguments>
                <object class="\Cake\TestSuite\Fixture\FixtureManager" />
            </arguments>
        </listener>
    </listeners>

</phpunit>


FROM debian:jessie

RUN apt-get -y update
RUN apt-get -y install ca-certificates \
                       git \
                       openssh-client \
                       libssl-dev \
                       python-pip \
                       python-dev \
                       libffi-dev
RUN pip install -U cffi setuptools
RUN pip install ansible==2.5

COPY run-tests.sh run-tests.sh

Fix python setuptools install failure.

FROM debian:jessie

RUN apt-get -y update
RUN apt-get -y install ca-certificates \
                       git \
                       openssh-client \
                       libssl-dev \
                       python-pip \
                       python-dev \
                       libffi-dev
RUN pip install -U pip cffi
RUN pip install -U setuptools==44.1.1
RUN pip install ansible==2.5

COPY run-tests.sh run-tests.sh


#
# $Id: Makefile,v 1.5 1994/11/15 04:51:37 phk Exp $
#

PROG =	cc1plus
SRCS =	call.c class.c cvt.c decl.c decl2.c edsel.c errfn.c error.c except.c expr.c gc.c init.c lex.c method.c parse.c pt.c ptree.c search.c sig.c spew.c tree.c typeck.c typeck2.c xref.c
BINDIR=	/usr/libexec
NOMAN=	1
DPADD+=	${LIBCC_INT}
LDADD+=	-lcc_int

.include <bsd.prog.mk>

Make cc1plus smaller and faster as was done for cc1 by linking static.

#
# $Id: Makefile,v 1.6 1995/09/22 14:14:26 phk Exp $
#

PROG =	cc1plus
SRCS =	call.c class.c cvt.c decl.c decl2.c edsel.c errfn.c error.c except.c expr.c gc.c init.c lex.c method.c parse.c pt.c ptree.c search.c sig.c spew.c tree.c typeck.c typeck2.c xref.c
BINDIR=	/usr/libexec
NOMAN=	1
NOSHARED=	makes_it_smaller_faster
DPADD+=	${LIBCC_INT}
LDADD+=	-lcc_int

.include <bsd.prog.mk>


#------------------------------------------------------------------------------#
# Distributed under the OSI-approved Apache License, Version 2.0.  See
# accompanying file Copyright.txt for details.
#------------------------------------------------------------------------------#

list(APPEND CTEST_CUSTOM_WARNING_EXCEPTION
  "H5PL\\.c.*dlopen.*glibc"
  "gtest\\.cc.*getaddrinfo.*glibc"
  ".*/thirdparty/.*/(.*\\.(c|cc|cxx|CC))"
)
list(APPEND CTEST_CUSTOM_COVERAGE_EXCLUDE
  ".*/thirdparty/.*"
  ".*/testing/.*"
  ".*/examples/.*"
)

Exclude specific static cray warning noise.

#------------------------------------------------------------------------------#
# Distributed under the OSI-approved Apache License, Version 2.0.  See
# accompanying file Copyright.txt for details.
#------------------------------------------------------------------------------#

list(APPEND CTEST_CUSTOM_WARNING_EXCEPTION
  "H5PL\\.c.*dlopen.*glibc"
  "gtest\\.cc.*getaddrinfo.*glibc"
  ".*/thirdparty/.*/(.*\\.(c|cc|cxx|CC))"
  "warning: Using '.*' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking"
)
list(APPEND CTEST_CUSTOM_COVERAGE_EXCLUDE
  ".*/thirdparty/.*"
  ".*/testing/.*"
  ".*/examples/.*"
)


#	$Id: Makefile,v 1.17 1995/01/12 02:56:15 ache Exp $

SUBDIR= as awk bc cc cpio cvs dc dialog diff diff3 gdb \
	grep groff gzip kgdb ld man patch perl ptx rcs sdiff send-pr \
	sort tar texinfo

.include <bsd.subdir.mk>

Build ngroff instead of groff now

#	$Id: Makefile,v 1.18 1995/01/16 17:51:46 ache Exp $

SUBDIR= as awk bc cc cpio cvs dc dialog diff diff3 gdb \
	grep ngroff gzip kgdb ld man patch perl ptx rcs sdiff send-pr \
	sort tar texinfo

.include <bsd.subdir.mk>


FROM microsoft/aspnetcore:2.0.3 AS base
WORKDIR /app
EXPOSE 80

FROM aspnetcore-build:2.0.5-2.1.4 AS build
WORKDIR /src
COPY . .
RUN dotnet restore -nowarn:msb3202,nu1503
WORKDIR /src/src/Services/Location/Locations.API
RUN dotnet build --no-restore -c Release -o /app

FROM build AS publish
RUN dotnet publish --no-restore -c Release -o /app

FROM base AS final
WORKDIR /app
COPY --from=publish /app .
ENTRYPOINT ["dotnet", "Locations.API.dll"]

Fix bug in microsoft/aspnetcore-build:2.0.5-2.1.4 name.

FROM microsoft/aspnetcore:2.0.3 AS base
WORKDIR /app
EXPOSE 80

FROM microsoft/aspnetcore-build:2.0.5-2.1.4 AS build
WORKDIR /src
COPY . .
RUN dotnet restore -nowarn:msb3202,nu1503
WORKDIR /src/src/Services/Location/Locations.API
RUN dotnet build --no-restore -c Release -o /app

FROM build AS publish
RUN dotnet publish --no-restore -c Release -o /app

FROM base AS final
WORKDIR /app
COPY --from=publish /app .
ENTRYPOINT ["dotnet", "Locations.API.dll"]


FROM        debian:sid
MAINTAINER  The Prometheus Authors <prometheus-developers@googlegroups.com>

RUN \
    apt-get update && apt-get install -y --no-install-recommends \
        build-essential \
        ca-certificates \
        curl \
        git \
        gnupg \
        libsnmp-dev \
        make \
	&& rm -rf /var/lib/apt/lists/*

ENV GOLANG_VERSION 1.10
ENV GOLANG_DOWNLOAD_URL https://golang.org/dl/go$GOLANG_VERSION.linux-amd64.tar.gz
ENV GOLANG_DOWNLOAD_SHA256 de874549d9a8d8d8062be05808509c09a88a248e77ec14eb77453530829ac02b

RUN curl -fsSL "$GOLANG_DOWNLOAD_URL" -o golang.tar.gz \
	&& echo "$GOLANG_DOWNLOAD_SHA256  golang.tar.gz" | sha256sum -c - \
	&& tar -C /usr/local -xzf golang.tar.gz \
	&& rm golang.tar.gz

ENV GOPATH /go
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH

RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
WORKDIR $GOPATH

COPY rootfs /

VOLUME      /app
WORKDIR     /app
ENTRYPOINT  ["/builder.sh"]

Fix go 1.10 tarball checksum

FROM        debian:sid
MAINTAINER  The Prometheus Authors <prometheus-developers@googlegroups.com>

RUN \
    apt-get update && apt-get install -y --no-install-recommends \
        build-essential \
        ca-certificates \
        curl \
        git \
        gnupg \
        libsnmp-dev \
        make \
	&& rm -rf /var/lib/apt/lists/*

ENV GOLANG_VERSION 1.10
ENV GOLANG_DOWNLOAD_URL https://golang.org/dl/go$GOLANG_VERSION.linux-amd64.tar.gz
ENV GOLANG_DOWNLOAD_SHA256 b5a64335f1490277b585832d1f6c7f8c6c11206cba5cd3f771dcb87b98ad1a33

RUN curl -fsSL "$GOLANG_DOWNLOAD_URL" -o golang.tar.gz \
	&& echo "$GOLANG_DOWNLOAD_SHA256  golang.tar.gz" | sha256sum -c - \
	&& tar -C /usr/local -xzf golang.tar.gz \
	&& rm golang.tar.gz

ENV GOPATH /go
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH

RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
WORKDIR $GOPATH

COPY rootfs /

VOLUME      /app
WORKDIR     /app
ENTRYPOINT  ["/builder.sh"]


FROM tiangolo/uwsgi-nginx:python2.7

LABEL maintainer="Sebastian Ramirez <tiangolo@gmail.com>"

RUN pip install flask

# URL under which static (not modified by Python) files will be requested
# They will be served by Nginx directly, without being handled by uWSGI
ENV STATIC_URL /static
# Absolute path in where the static files wil be
ENV STATIC_PATH /app/static

# If STATIC_INDEX is 1, serve / with /static/index.html directly (or the static URL configured)
# ENV STATIC_INDEX 1
ENV STATIC_INDEX 0

# Add demo app
COPY ./app /app
WORKDIR /app

# Make /app/* available to be imported by Python globally to better support several use cases like Alembic migrations.
ENV PYTHONPATH=/app

# Move the base entrypoint to reuse it
RUN mv /entrypoint.sh /uwsgi-nginx-entrypoint.sh
# Copy the entrypoint that will generate Nginx additional configs
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]

# Run the start script, it will check for an /app/prestart.sh script (e.g. for migrations)
# And then will start Supervisor, which in turn will start Nginx and uWSGI
CMD ["/start.sh"]

Add comment about start.sh in parent to python2.7

FROM tiangolo/uwsgi-nginx:python2.7

LABEL maintainer="Sebastian Ramirez <tiangolo@gmail.com>"

RUN pip install flask

# URL under which static (not modified by Python) files will be requested
# They will be served by Nginx directly, without being handled by uWSGI
ENV STATIC_URL /static
# Absolute path in where the static files wil be
ENV STATIC_PATH /app/static

# If STATIC_INDEX is 1, serve / with /static/index.html directly (or the static URL configured)
# ENV STATIC_INDEX 1
ENV STATIC_INDEX 0

# Add demo app
COPY ./app /app
WORKDIR /app

# Make /app/* available to be imported by Python globally to better support several use cases like Alembic migrations.
ENV PYTHONPATH=/app

# Move the base entrypoint to reuse it
RUN mv /entrypoint.sh /uwsgi-nginx-entrypoint.sh
# Copy the entrypoint that will generate Nginx additional configs
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]

# Run the start script provided by the parent image tiangolo/uwsgi-nginx.
# It will check for an /app/prestart.sh script (e.g. for migrations)
# And then will start Supervisor, which in turn will start Nginx and uWSGI
CMD ["/start.sh"]


FROM maven:3-jdk-8

COPY m2_temp/* /root/.m2/repository/

RUN git clone --depth=1 --branch=master https://github.com/eclipse/lyo.trs-client.git && cd lyo.trs-client && mvn clean install -Dmaven.test.skip=true -B -q
RUN git clone --depth=1 --branch=master https://github.com/eclipse/lyo.trs-server.git && cd lyo.trs-server && mvn clean install -Dmaven.test.skip=true -B -q

Use 'mqtt-2019' branch on TRS Client

FROM maven:3-jdk-8

COPY m2_temp/* /root/.m2/repository/

RUN git clone --depth=1 --branch=mqtt-2019 https://github.com/eclipse/lyo.trs-client.git && cd lyo.trs-client && mvn clean install -Dmaven.test.skip=true -B -q
RUN git clone --depth=1 --branch=master https://github.com/eclipse/lyo.trs-server.git && cd lyo.trs-server && mvn clean install -Dmaven.test.skip=true -B -q


# $Id$
# Copyright W. Bangerth, University of Heidelberg, 1998

all: deal.II examples

clean: lib-clean source-clean examples-clean

deal.II:
	cd source ; make

examples:
	cd examples ; make

lib-clean:
	-rm -f *~ include/*~ include/*/*~ include/basic/forward-declarations.h*
	cd lib ; make clean

examples-clean:
	cd examples ; make clean

source-clean:
	cd source ; make clean
TAGS:
	etags include/*/*.h source/*/*.cc

.PHONY: all deal.II examples TAGS
.PHONY: clean lib-clean examples-clean source-clean

Revert the order in which to clean because this way forward-declarations.h was regenerated after cleaning.

# $Id$
# Copyright W. Bangerth, University of Heidelberg, 1998

all: deal.II examples

clean: source-clean examples-clean lib-clean

deal.II:
	cd source ; make

examples:
	cd examples ; make

lib-clean:
	-rm -f *~ include/*~ include/*/*~ include/basic/forward-declarations.h*
	cd lib ; make clean

examples-clean:
	cd examples ; make clean

source-clean:
	cd source ; make clean
TAGS:
	etags include/*/*.h source/*/*.cc

.PHONY: all deal.II examples TAGS
.PHONY: clean lib-clean examples-clean source-clean


@PACKAGE_INIT@
if(NOT TARGET @PROJECT_NAME@::@NLOHMANN_JSON_TARGET_NAME@)
    include("${CMAKE_CURRENT_LIST_DIR}/@NLOHMANN_JSON_TARGETS_EXPORT_NAME@.cmake")
endif()
check_required_components("@PROJECT_NAME@")

Use a version check to provide backwards comatible imported target names.

@PACKAGE_INIT@
if(NOT TARGET @PROJECT_NAME@::@NLOHMANN_JSON_TARGET_NAME@)
    include("${CMAKE_CURRENT_LIST_DIR}/@NLOHMANN_JSON_TARGETS_EXPORT_NAME@.cmake")
    if((NOT TARGET @NLOHMANN_JSON_TARGET_NAME@) AND
       (PACKAGE_FIND_VERSION VERSION_LESS 3.2.0))
      add_library(@NLOHMANN_JSON_TARGET_NAME@ ALIAS @PROJECT_NAME@::@NLOHMANN_JSON_TARGET_NAME@)
    endif()
endif()
check_required_components("@PROJECT_NAME@")


FROM centos:6

MAINTAINER Phil Elson <pelson.pub@gmail.com>

RUN echo "exclude=*.i386 *.i686" >> /etc/yum.conf && \
    yum update -y && \
    yum install -y \
                   bzip2 \
                   gcc-c++ \
                   git \
                   make \
                   patch \
                   tar \
                   wget \
                   which \
                   libXext \
                   libXrender \
                   libSM \
                   libX11-devel && \
    yum clean all

RUN wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh --no-verbose && \
    bash Miniconda3-latest-Linux-x86_64.sh -b -p /opt/conda && rm Miniconda*.sh && \
    export PATH=/opt/conda/bin:$PATH && \
    conda config --set show_channel_urls True && \
    conda update --all --yes && conda clean -tipsy

RUN export PATH=/opt/conda/bin:$PATH && \
    conda install --yes -c pelson/channel/development obvious-ci && \
    obvci_install_conda_build_tools.py

# udunits2.
# libtool texinfo
# RUN yum install -y expat-devel

ENV PATH /opt/conda/bin:$PATH

ENV LANG en_US.UTF-8

Set UTF-8 support right away.

FROM centos:6

MAINTAINER Phil Elson <pelson.pub@gmail.com>

ENV LANG en_US.UTF-8

RUN echo "exclude=*.i386 *.i686" >> /etc/yum.conf && \
    yum update -y && \
    yum install -y \
                   bzip2 \
                   gcc-c++ \
                   git \
                   make \
                   patch \
                   tar \
                   wget \
                   which \
                   libXext \
                   libXrender \
                   libSM \
                   libX11-devel && \
    yum clean all

RUN wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh --no-verbose && \
    bash Miniconda3-latest-Linux-x86_64.sh -b -p /opt/conda && rm Miniconda*.sh && \
    export PATH=/opt/conda/bin:$PATH && \
    conda config --set show_channel_urls True && \
    conda update --all --yes && conda clean -tipsy

RUN export PATH=/opt/conda/bin:$PATH && \
    conda install --yes -c pelson/channel/development obvious-ci && \
    obvci_install_conda_build_tools.py

# udunits2.
# libtool texinfo
# RUN yum install -y expat-devel

ENV PATH /opt/conda/bin:$PATH


#	@(#)Makefile	8.1 (Berkeley) 6/7/93

PROG=	mailstats
CFLAGS+=-I${.CURDIR}/../src
NOMAN=	noman

.include "../../Makefile.inc"
.include <bsd.prog.mk>

Add a man page for mailstats(8).

#	@(#)Makefile	8.1 (Berkeley) 6/7/93

PROG=	mailstats
CFLAGS+=-I${.CURDIR}/../src
MAN8=	mailstats.8

.include "../../Makefile.inc"
.include <bsd.prog.mk>


<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         syntaxCheck="false"
         bootstrap="tests/bootstrap.php"
>
    <testsuites>
        <testsuite name="Symfony Process Component Test Suite">
            <directory>./Tests/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>./</directory>
            <exclude>
                <directory>./Resources</directory>
                <directory>./Tests</directory>
            </exclude>
        </whitelist>
    </filter>
</phpunit>

Fix the path to the boostrap files in the components

<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         syntaxCheck="false"
         bootstrap="Tests/bootstrap.php"
>
    <testsuites>
        <testsuite name="Symfony Process Component Test Suite">
            <directory>./Tests/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>./</directory>
            <exclude>
                <directory>./Resources</directory>
                <directory>./Tests</directory>
            </exclude>
        </whitelist>
    </filter>
</phpunit>


<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false">
  <php>
    <const name="PHPUNIT_TESTSUITE" value="true"/>
  </php>

  <testsuites>
    <testsuite name="PHPUnit Mock Objects">
      <directory suffix="Test.php">Tests</directory>
      <directory suffix=".phpt">Tests</directory>
    </testsuite>
  </testsuites>

  <logging>
    <log type="coverage-html" target="build/coverage" title="PHPUnit Mock Objects"
         charset="UTF-8" yui="true" highlight="true"
         lowUpperBound="35" highLowerBound="70"/>
    <log type="coverage-clover" target="build/logs/clover.xml"/>
    <log type="junit" target="build/logs/junit.xml" logIncompleteSkipped="false"/>
  </logging>

  <filter>
    <whitelist addUncoveredFilesFromWhitelist="true">
      <directory suffix=".php">PHPUnit</directory>
    </whitelist>
  </filter>
</phpunit>

Exclude autoloader from code coverage report.

<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false">
  <php>
    <const name="PHPUNIT_TESTSUITE" value="true"/>
  </php>

  <testsuites>
    <testsuite name="PHPUnit Mock Objects">
      <directory suffix="Test.php">Tests</directory>
      <directory suffix=".phpt">Tests</directory>
    </testsuite>
  </testsuites>

  <logging>
    <log type="coverage-html" target="build/coverage" title="PHPUnit Mock Objects"
         charset="UTF-8" yui="true" highlight="true"
         lowUpperBound="35" highLowerBound="70"/>
    <log type="coverage-clover" target="build/logs/clover.xml"/>
    <log type="junit" target="build/logs/junit.xml" logIncompleteSkipped="false"/>
  </logging>

  <filter>
    <whitelist addUncoveredFilesFromWhitelist="true">
      <directory suffix=".php">PHPUnit</directory>
      <exclude>
       <file>PHPUnit/Framework/MockObject/Autoload.php</file>
      </exclude>
    </whitelist>
  </filter>
</phpunit>


<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         syntaxCheck="false"
         bootstrap="vendor/autoload.php"
>
    <testsuites>
        <testsuite name="Symfony ExpressionLanguage Component Test Suite">
            <directory>./Tests/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>./</directory>
            <exclude>
                <directory>./Tests</directory>
                <directory>./vendor</directory>
            </exclude>
        </whitelist>
    </filter>
</phpunit>

Adjust error_reporting to allow deprecation messages for 3.0

<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         syntaxCheck="false"
         bootstrap="vendor/autoload.php"
>
    <php>
        <!-- Disable E_USER_DEPRECATED until 3.0 -->
        <!-- php -r 'echo -1 & ~E_USER_DEPRECATED;' -->
        <ini name="error_reporting" value="-16385"/>
    </php>

    <testsuites>
        <testsuite name="Symfony ExpressionLanguage Component Test Suite">
            <directory>./Tests/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>./</directory>
            <exclude>
                <directory>./Tests</directory>
                <directory>./vendor</directory>
            </exclude>
        </whitelist>
    </filter>
</phpunit>


<phpunit colors="true" bootstrap="vendor/autoload.php" stopOnError="true" stopOnFailure="true" stopOnSkipped="true" strict="true">
    <filter>
        <blacklist>
            <directory suffix=".php">./vendor</directory>
        </blacklist>
    </filter>

    <testsuite name="telegramApi">
        <directory>./tests/</directory>
    </testsuite>

    <logging>
        <!-- log type="coverage-html" target="tests/report/" charset="UTF-8" / -->
    </logging>
</phpunit>

Create whitelist for code coverage report

<phpunit colors="true" bootstrap="vendor/autoload.php" stopOnError="true" stopOnFailure="true" stopOnSkipped="true"
         strict="true">
    <filter>
        <blacklist>
            <directory suffix=".php">./vendor</directory>
        </blacklist>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">/src/unreal4u/</directory>
        </whitelist>
    </filter>

    <testsuite name="telegramApi">
        <directory>./tests/</directory>
    </testsuite>

    <logging>
        <!-- log type="coverage-html" target="tests/report/" charset="UTF-8" / -->
    </logging>
</phpunit>


<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="./vendor/autoload.php"
         colors="true">
    <testsuites>
        <testsuite>
            <directory>tests</directory>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist>
            <directory suffix=".php">src</directory>
        </whitelist>
    </filter>
</phpunit>

Add missing "name" attribute to testsuite

<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="./vendor/autoload.php"
         colors="true">
    <testsuites>
        <testsuite name="unit">
            <directory>tests</directory>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist>
            <directory suffix=".php">src</directory>
        </whitelist>
    </filter>
</phpunit>


# build
FROM golang:alpine as builder
ARG VERSION
ARG COMMIT
ARG DATE
RUN mkdir /build
ADD . /build/
WORKDIR /build/kustomize
RUN CGO_ENABLED=0 GO111MODULE=on go build \
    -ldflags="-s -X sigs.k8s.io/kustomize/api/provenance.version=${VERSION} \
    -X sigs.k8s.io/kustomize/api/provenance.gitCommit=${COMMIT} \
    -X sigs.k8s.io/kustomize/api/provenance.buildDate=${DATE}"

# only copy binary
FROM alpine
COPY --from=builder /build/kustomize /app/
WORKDIR /app
ENTRYPOINT ["./kustomize"]

Add git and openssh in docker image

# build
FROM golang:alpine as builder
ARG VERSION
ARG COMMIT
ARG DATE
RUN mkdir /build
ADD . /build/
WORKDIR /build/kustomize
RUN CGO_ENABLED=0 GO111MODULE=on go build \
    -ldflags="-s -X sigs.k8s.io/kustomize/api/provenance.version=${VERSION} \
    -X sigs.k8s.io/kustomize/api/provenance.gitCommit=${COMMIT} \
    -X sigs.k8s.io/kustomize/api/provenance.buildDate=${DATE}"

# only copy binary
FROM alpine
# install dependencies
RUN apk add git openssh
COPY --from=builder /build/kustomize /app/
WORKDIR /app
ENTRYPOINT ["./kustomize"]


# $FreeBSD$

SUBDIR=lib add create delete info update version

.include <bsd.subdir.mk>

Build package signing tools if OpenSSL is included in the build.

# $FreeBSD$

SUBDIR=lib add create delete info update version

.if !defined(NO_OPENSSL)
SUBDIR+=sign
.endif

.include <bsd.subdir.mk>


<phpunit
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation   = "http://schema.phpunit.de/3.7/phpunit.xsd"
    backupGlobals                   = "true"
    backupStaticAttributes          = "false"
    colors                          = "true"
    convertNoticesToExceptions      = "true"
    convertWarningsToExceptions     = "true"
    convertErrorsToExceptions       = "true"
    processIsolation                = "false"
    stopOnFailure                   = "true"
    stopOnError                     = "true"
    syntaxCheck                     = "true"
    bootstrap                       = "bootstrap.php">

    <testsuites>
        <testsuite name="AllTests">
            <directory>tests/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory suffix=".php">../</directory>
            <exclude>
                <directory>../.git</directory>
                <directory>../.github</directory>
                <directory>../XTemplate</directory>
                <directory>../Zend</directory>
                <directory>../cache</directory>
                <directory>../vendor</directory>
                <directory>../tests</directory>
            </exclude>
        </whitelist>
    </filter>

    <php>
        <ini name="display_errors" value="true"/>
    </php>

</phpunit>

Disable stopOnFailure and stopOnError in PHPUnit config.

<phpunit
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation   = "http://schema.phpunit.de/3.7/phpunit.xsd"
    backupGlobals                   = "true"
    backupStaticAttributes          = "false"
    colors                          = "true"
    convertNoticesToExceptions      = "true"
    convertWarningsToExceptions     = "true"
    convertErrorsToExceptions       = "true"
    processIsolation                = "false"
    stopOnFailure                   = "false"
    stopOnError                     = "false"
    syntaxCheck                     = "true"
    bootstrap                       = "bootstrap.php">

    <testsuites>
        <testsuite name="AllTests">
            <directory>tests/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory suffix=".php">../</directory>
            <exclude>
                <directory>../.git</directory>
                <directory>../.github</directory>
                <directory>../XTemplate</directory>
                <directory>../Zend</directory>
                <directory>../cache</directory>
                <directory>../vendor</directory>
                <directory>../tests</directory>
            </exclude>
        </whitelist>
    </filter>

    <php>
        <ini name="display_errors" value="true"/>
    </php>

</phpunit>


# $FreeBSD$

SUBDIR=	clang

.include <bsd.subdir.mk>

Install tblgen so partial / progressive builds are still possible.

# $FreeBSD$

SUBDIR=	clang tblgen

.include <bsd.subdir.mk>


#	@(#)Makefile	8.1 (Berkeley) 6/6/93
# $FreeBSD$

PROG=	users

DPADD=	${LIBULOG}
LDADD=	-lulog

.include <bsd.prog.mk>

Add WARNS?=6, because it seems to build out of the box.

#	@(#)Makefile	8.1 (Berkeley) 6/6/93
# $FreeBSD$

PROG=	users

WARNS?=	6

DPADD=	${LIBULOG}
LDADD=	-lulog

.include <bsd.prog.mk>


<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         syntaxCheck="false"
         bootstrap="./vendor/autoload.php">
    <testsuites>
        <testsuite name="Closure Compiler Test Suite">
            <directory>./tests/ClosureCompiler</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory suffix=".php">src/ClosureCompiler</directory>
        </whitelist>
    </filter>
</phpunit>

Update tests path in phpunit configuration file

<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         syntaxCheck="false"
         bootstrap="./vendor/autoload.php">
    <testsuites>
        <testsuite name="Closure Compiler Test Suite">
            <directory>./tests/Closure</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory suffix=".php">src/Closure</directory>
        </whitelist>
    </filter>
</phpunit>


<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         syntaxCheck="false"
         bootstrap="PHP/CodeCoverage/Autoload.php">
  <testsuites>
    <testsuite name="php-code-coverage">
      <directory suffix="Test.php">Tests/PHP</directory>
    </testsuite>
  </testsuites>

  <php>
    <const name="PHP_CODECOVERAGE_TESTSUITE" value="true"/>
  </php>

  <logging>
    <log type="coverage-html" target="build/coverage" title="PHP_CodeCoverage"
         charset="UTF-8" yui="true" highlight="true"
         lowUpperBound="35" highLowerBound="70"/>
    <log type="coverage-clover" target="build/logs/clover.xml"/>
    <log type="junit" target="build/logs/junit.xml" logIncompleteSkipped="false"/>
  </logging>

  <filter>
    <whitelist addUncoveredFilesFromWhitelist="true">
      <directory suffix=".php">PHP</directory>
    </whitelist>
  </filter>
</phpunit>

Exclude autoloader from code coverage.

<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         syntaxCheck="false"
         bootstrap="PHP/CodeCoverage/Autoload.php">
  <testsuites>
    <testsuite name="php-code-coverage">
      <directory suffix="Test.php">Tests/PHP</directory>
    </testsuite>
  </testsuites>

  <php>
    <const name="PHP_CODECOVERAGE_TESTSUITE" value="true"/>
  </php>

  <logging>
    <log type="coverage-html" target="build/coverage" title="PHP_CodeCoverage"
         charset="UTF-8" yui="true" highlight="true"
         lowUpperBound="35" highLowerBound="70"/>
    <log type="coverage-clover" target="build/logs/clover.xml"/>
    <log type="junit" target="build/logs/junit.xml" logIncompleteSkipped="false"/>
  </logging>

  <filter>
    <whitelist addUncoveredFilesFromWhitelist="true">
      <directory suffix=".php">PHP</directory>
      <exclude>
        <file>PHP/CodeCoverage/Autoload.php</file>
      </exclude>
    </whitelist>
  </filter>
</phpunit>


# $FreeBSD$

.include "../Makefile.inc0"

.PATH: ${SRCDIR}/libiberty

LIB=	iberty
SRCS=	argv.c \
	concat.c \
	choose-temp.c \
	cp-demangle.c \
	cp-demint.c \
	cplus-dem.c \
	dyn-string.c \
	getpwd.c \
	getruntime.c \
	floatformat.c \
	hashtab.c \
	hex.c \
	lbasename.c \
	lrealpath.c \
	make-relative-prefix.c \
	make-temp-file.c \
	objalloc.c \
	obstack.c \
	safe-ctype.c \
	xatexit.c \
	xexit.c \
	xmalloc.c \
	xstrdup.c \
	xstrerror.c

# The following files are needed by gdb(1)
SRCS+=	splay-tree.c

WARNS?=	1
CFLAGS+=	-DHAVE_CONFIG_H
INTERNALLIB=

.include <bsd.lib.mk>

Add new upstream file to libiberty.

# $FreeBSD$

.include "../Makefile.inc0"

.PATH: ${SRCDIR}/libiberty

LIB=	iberty
SRCS=	argv.c \
	concat.c \
	choose-temp.c \
	cp-demangle.c \
	cp-demint.c \
	cplus-dem.c \
	dyn-string.c \
	getpwd.c \
	getruntime.c \
	floatformat.c \
	hashtab.c \
	hex.c \
	lbasename.c \
	lrealpath.c \
	make-relative-prefix.c \
	make-temp-file.c \
	objalloc.c \
	obstack.c \
	safe-ctype.c \
	unlink-if-ordinary.c \
	xatexit.c \
	xexit.c \
	xmalloc.c \
	xstrdup.c \
	xstrerror.c

# The following files are needed by gdb(1)
SRCS+=	splay-tree.c

WARNS?=	1
CFLAGS+=	-DHAVE_CONFIG_H
INTERNALLIB=

.include <bsd.lib.mk>


#
# Makefile for INFO files
#

INFOFILES+= dir info.info makeinfo.info texi.info texi.info-1 texi.info-2
INFOFILES+= texi.info-3 texi.info-4 texi.info-5 texi.info-6 texi.info-7
INFOFILES+= texi.info-8 texi.info-9 texi.info-10 texi.info-11

install:
	mkdir -p ${INFODIR}
	install -c -g ${BINGRP} -o ${BINOWN} -m 444 ${INFOFILES} ${INFODIR}

clean cleandir obj:
	@echo -n

.include <bsd.prog.mk>

Change install -c to install ${COPY} as per Rod's comments. At least we've got one Makefile that uses this in the tree now! :-)

#
# Makefile for INFO files
#

INFOFILES+= dir info.info makeinfo.info texi.info texi.info-1 texi.info-2
INFOFILES+= texi.info-3 texi.info-4 texi.info-5 texi.info-6 texi.info-7
INFOFILES+= texi.info-8 texi.info-9 texi.info-10 texi.info-11

install:
	mkdir -p ${INFODIR}
	install ${COPY} -g ${BINGRP} -o ${BINOWN} -m 444 ${INFOFILES} ${INFODIR}

clean cleandir obj:
	@echo -n

.include <bsd.prog.mk>


FROM python:3.7-slim

WORKDIR /root

COPY ./requirements.txt /root/requirements.txt

# TODO: copy in permanent code run stuff?

# TODO remove requirements.txt?

# ENTRYPOINT ["bash"]

CMD ["tail", "-f", "/dev/null"]

Set locale, encoding in dockerfile

FROM python:3.7-slim

WORKDIR /root

COPY ./requirements.txt /root/requirements.txt

# TODO: copy in permanent code run stuff?

ENV PYTHONIOENCODING=utf-8
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'

# TODO remove requirements.txt?

# ENTRYPOINT ["bash"]

CMD ["tail", "-f", "/dev/null"]


[Desktop Entry]
Type=Link
Name=File Manager
Name[it]=File manager
Icon=e-module-fileman
Comment=<hilight>The E17 File Manager</hilight>
E17's integrated file manager.
<hilight>Under Construction!</hilight>
Comment[it]=<hilight>Il file manager di E17</hilight>
Questo  il file manager
integrato in E17.

Add module type for fileman.

[Desktop Entry]
Type=Link
Name=File Manager
Name[it]=File manager
Icon=e-module-fileman
Comment=<hilight>The E17 File Manager</hilight>
E17's integrated file manager.
<hilight>Under Construction!</hilight>
Comment[it]=<hilight>Il file manager di E17</hilight>
Questo  il file manager
integrato in E17.
X-Enlightenment-ModuleType=system


# $FreeBSD$

SUBDIR=	common_source chkprintcap lp lpc lpd lpq lpr lprm lptest pac \
	filters filters.ru SMM.doc

MAINTAINER=	wollman@FreeBSD.org
MAINTAINER+=	drosih@rpi.edu

.include <bsd.subdir.mk>

Change my email on MAINTAINER from an RPI address to my FreeBSD address.

# $FreeBSD$

SUBDIR=	common_source chkprintcap lp lpc lpd lpq lpr lprm lptest pac \
	filters filters.ru SMM.doc

MAINTAINER=	wollman@FreeBSD.org
MAINTAINER+=	gad@FreeBSD.org

.include <bsd.subdir.mk>


## A tribute to Dynamic!
set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS "33331")
set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS "33331")

Reduce maximum number of warnings/errors. (they took GBs even for limited period of time)

set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS "2000")
set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS   "2000")


include(@CMAKE_INSTALL_PREFIX@/share/qzeitgeist/cmake/QZeitgeistExport.cmake)
set(QZEITGEIST_LIBRARY QZEITGEIST_qzeitgeist)
set(QZEITGEIST_INCLUDE_DIR @CMAKE_INSTALL_PREFIX@/include/QtZeitgeist)

Define QZEITGEIST_FOUND for external projects

include(@CMAKE_INSTALL_PREFIX@/share/qzeitgeist/cmake/QZeitgeistExport.cmake)
set(QZEITGEIST_LIBRARY QZEITGEIST_qzeitgeist)
set(QZEITGEIST_INCLUDE_DIR @CMAKE_INSTALL_PREFIX@/include/QtZeitgeist)
set(QZEITGEIST_FOUND TRUE)


FROM ruby:2.3
MAINTAINER Azure App Services Container Images <appsvc-images@microsoft.com>

COPY init_container.sh /bin/

RUN apt-get update -qq \
    && apt-get install -y nodejs unzip openssh-server --no-install-recommends \
    && chmod 755 /bin/init_container.sh \
    && echo "root:Docker!" | chpasswd

COPY sshd_config /etc/ssh/

# Rollback bundler version for deployment reasons (14 had a breaking change for us)
RUN  gem uninstall -i /usr/local/lib/ruby/gems/2.3.0 bundler
RUN gem install bundler --version "=1.13.6"

# Install passenger
RUN gem install rubygems-bundler
RUN gem regenerate_binstubs
RUN gem install --no-user-install passenger
RUN mkdir -p /usr/local/passenger/logs
RUN ln -s /home/LogFiles /usr/local/passenger/logs

COPY splashsite.zip /tmp
RUN unzip -q /tmp/splashsite.zip -d /opt/splash

RUN cd /opt/splash/splash; bundle install --deployment

HEALTHCHECK CMD curl --fail http://localhost:3000/ || exit 1

EXPOSE 2222

CMD ["/bin/init_container.sh"]

Remove ln command as it doesn't work as expected

FROM ruby:2.3
MAINTAINER Azure App Services Container Images <appsvc-images@microsoft.com>

COPY init_container.sh /bin/

RUN apt-get update -qq \
    && apt-get install -y nodejs unzip openssh-server --no-install-recommends \
    && chmod 755 /bin/init_container.sh \
    && echo "root:Docker!" | chpasswd

COPY sshd_config /etc/ssh/

# Rollback bundler version for deployment reasons (14 had a breaking change for us)
RUN  gem uninstall -i /usr/local/lib/ruby/gems/2.3.0 bundler
RUN gem install bundler --version "=1.13.6"

# Install passenger
RUN gem install rubygems-bundler
RUN gem regenerate_binstubs
RUN gem install --no-user-install passenger
RUN mkdir -p /usr/local/passenger/logs

COPY splashsite.zip /tmp
RUN unzip -q /tmp/splashsite.zip -d /opt/splash

RUN cd /opt/splash/splash; bundle install --deployment

HEALTHCHECK CMD curl --fail http://localhost:3000/ || exit 1

EXPOSE 2222

CMD ["/bin/init_container.sh"]


# Copyright 2007-2008 Roy Marples <roy@marples.name>
# All rights reserved. Released under the 2-clause BSD license.

retval=0

# mount $svcdir as something we can write to if it's not rw
# On vservers, / is always rw at this point, so we need to clean out
# the old service state data
if [ "${RC_SVCDIR}" != "/" ] && mkdir "${RC_SVCDIR}/.test.$$" 2>/dev/null; then
	rmdir "${RC_SVCDIR}/.test.$$"
	for x in ${RC_SVCDIR:-/@LIB@/rc/init.d}/*; do
		[ -e "${x}" ] || continue
		case ${x##*/} in
			depconfig|deptree|ksoftlevel|rc.log);;
			*) rm -rf "${x}";;
		esac
	done
else
	mount_svcdir
	retval=$?
fi

echo "sysinit" > "${RC_SVCDIR}/softlevel"

# sysinit is now done, so allow init scripts to run normally
[ -e /dev/.rcsysinit ] && rm -f /dev/.rcsysinit

exit ${retval}

Set the default RC_SVCDIR higher up.

# Copyright 2007-2008 Roy Marples <roy@marples.name>
# All rights reserved. Released under the 2-clause BSD license.

retval=0

# mount $svcdir as something we can write to if it's not rw
# On vservers, / is always rw at this point, so we need to clean out
# the old service state data
RC_SVCDIR=${RC_SVCDIR:-/@LIB@/rc/init.d}
if [ "${RC_SVCDIR}" != "/" ] && mkdir "${RC_SVCDIR}/.test.$$" 2>/dev/null; then
	rmdir "${RC_SVCDIR}/.test.$$"
	for x in ${RC_SVCDIR}/*; do
		[ -e "${x}" ] || continue
		case ${x##*/} in
			depconfig|deptree|ksoftlevel|rc.log);;
			*) rm -rf "${x}";;
		esac
	done
else
	mount_svcdir
	retval=$?
fi

echo "sysinit" > "${RC_SVCDIR}/softlevel"

# sysinit is now done, so allow init scripts to run normally
[ -e /dev/.rcsysinit ] && rm -f /dev/.rcsysinit

exit ${retval}


FROM python:3.5-alpine
WORKDIR /app
ENV PATH=/virtualenv/bin:$PATH
RUN apk update && apk upgrade
RUN apk add curl "postgresql-dev" \
                 "musl-dev" \
                 "gcc" \
                 "linux-headers" \
                 "libffi-dev" \
                 "zlib-dev" \
                 "jpeg-dev"

RUN pip install --no-cache-dir virtualenv && \
    mkdir /virtualenv &&  \
    virtualenv /virtualenv

COPY pip.conf /virtualenv/
COPY requirements.* /app/
RUN /virtualenv/bin/pip install -r requirements.in
COPY . /app
WORKDIR /app/schmusic

Remove some project specific stuff that leaked in

FROM python:3.5-alpine
WORKDIR /app
RUN apk update && apk upgrade
RUN apk add curl "postgresql-dev" \
                 "musl-dev" \
                 "gcc" \
                 "linux-headers" \
                 "libffi-dev" \
                 "zlib-dev" \
                 "jpeg-dev"

RUN pip install --no-cache-dir virtualenv && \
    mkdir /virtualenv &&  \
    virtualenv /virtualenv
ENV PATH=/virtualenv/bin:$PATH

COPY requirements.* /code/
RUN pip install -r requirements.in


<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="./tests/Bootstrap.php"
         colors="true"
         verbose="true"
>
    <testsuites>
        <testsuite name="Mockery Test Suite PHP8">
            <directory suffix="Test.php">./tests</directory>
            <directory phpVersion="8.0.0" phpVersionOperator=">=">./tests/PHP80</directory>
        </testsuite>

        <testsuite name="Mockery Test Suite PHP7">
            <directory suffix="Test.php">./tests</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">./library/</directory>
            <exclude>
                <directory>./library/Mockery/Adapter/Phpunit/Legacy</directory>
                <file>./library/Mockery/Adapter/Phpunit/TestListener.php</file>
                <file>./library/Mockery/Adapter/Phpunit/MockeryPHPUnitIntegrationAssertPostConditions.php</file>
                <file>./library/Mockery/Adapter/Phpunit/MockeryTestCaseSetUp.php</file>
            </exclude>
        </whitelist>
    </filter>

</phpunit>

Exclude php 8 file on php 7

<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="./tests/Bootstrap.php"
         colors="true"
         verbose="true"
>
    <testsuites>
        <testsuite name="Mockery Test Suite PHP8">
            <directory suffix="Test.php">./tests</directory>
            <directory phpVersion="8.0.0" phpVersionOperator=">=">./tests/PHP80</directory>
        </testsuite>

        <testsuite name="Mockery Test Suite PHP7">
            <directory suffix="Test.php">./tests</directory>
            <exclude>./tests/PHP80</exclude>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">./library/</directory>
            <exclude>
                <directory>./library/Mockery/Adapter/Phpunit/Legacy</directory>
                <file>./library/Mockery/Adapter/Phpunit/TestListener.php</file>
                <file>./library/Mockery/Adapter/Phpunit/MockeryPHPUnitIntegrationAssertPostConditions.php</file>
                <file>./library/Mockery/Adapter/Phpunit/MockeryTestCaseSetUp.php</file>
            </exclude>
        </whitelist>
    </filter>

</phpunit>


<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         syntaxCheck="false"
         bootstrap="vendor/autoload.php"
>
    <php>
        <ini name="intl.error_level" value="0"/>
        <ini name="memory_limit" value="-1"/>
    </php>

    <testsuites>
        <testsuite name="php-formatter Test Suite">
            <directory>./tests/</directory>
        </testsuite>
    </testsuites>
</phpunit>

Fix coverage generation on travis

<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         syntaxCheck="false"
         bootstrap="vendor/autoload.php"
>
    <php>
        <ini name="intl.error_level" value="0"/>
        <ini name="memory_limit" value="-1"/>
    </php>

    <testsuites>
        <testsuite name="php-formatter Test Suite">
            <directory>./tests/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory suffix=".php">src</directory>
        </whitelist>
    </filter>
</phpunit>


<?xml version="1.0" encoding="UTF-8"?>
<phpunit colors="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" stopOnError="false" stopOnFailure="false" stopOnIncomplete="false" stopOnSkipped="false" bootstrap="vendor/autoload.php">
    <testsuites>
        <testsuite name="all">
            <directory suffix="Test.php">tests/</directory>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist>
            <directory suffix=".php">src/</directory>
        </whitelist>
    </filter>
    <logging>
        <log type="tap" target="build/report.tap"/>
        <log type="junit" target="build/report.junit.xml"/>
        <log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/>
        <log type="coverage-text" target="build/coverage.txt"/>
        <log type="coverage-clover" target="build/logs/clover.xml"/>
    </logging>
</phpunit>

Remove laravel service provider from code coverage

<?xml version="1.0" encoding="UTF-8"?>
<phpunit colors="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" stopOnError="false" stopOnFailure="false" stopOnIncomplete="false" stopOnSkipped="false" bootstrap="vendor/autoload.php">
    <testsuites>
        <testsuite name="all">
            <directory suffix="Test.php">tests/</directory>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist>
            <directory suffix=".php">src/</directory>
            <exclude>
                <file>src/Laravel/ResponseServiceProvider.php</file>
            </exclude>
        </whitelist>
    </filter>
    <logging>
        <log type="tap" target="build/report.tap"/>
        <log type="junit" target="build/report.junit.xml"/>
        <log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/>
        <log type="coverage-text" target="build/coverage.txt"/>
        <log type="coverage-clover" target="build/logs/clover.xml"/>
    </logging>
</phpunit>


set(CTEST_CUSTOM_COVERAGE_EXCLUDE
  ${CTEST_CUSTOM_COVERAGE_EXCLUDE}
  "tests.*.cpp"
  )

Exclude MOC files and thirdparty from coverage

set(CTEST_CUSTOM_COVERAGE_EXCLUDE
  ${CTEST_CUSTOM_COVERAGE_EXCLUDE}
  "tests.*.cpp"
  # Exclude all third party code.
  ".*/thirdparty/.*"
  # Exclude MOC files (Qt).
  "moc_"
  )


ARG distro
ARG distrover

FROM $distro:$distrover

ARG distro
ARG distrover

RUN apt-get update
RUN apt-get install -y build-essential fakeroot debhelper git
RUN apt-get install -y python3-all python3-pip
RUN apt-get install -y ruby ruby-dev
RUN apt-get install -y python-all python-pip

RUN gem install fpm

RUN pip2 install virtualenv-tools
RUN pip3 install virtualenv
RUN virtualenv -p python3 /vdirsyncer/env/

COPY . /vdirsyncer/vdirsyncer/
WORKDIR /vdirsyncer/vdirsyncer/
RUN mkdir /vdirsyncer/pkgs/

RUN basename *.tar.gz .tar.gz | cut -d'-' -f2 | sed -e 's/\.dev/~/g' | tee version
RUN . /vdirsyncer/env/bin/activate; fpm -s virtualenv -t deb \
-n "vdirsyncer-latest" \
-v "$(cat version)" \
--prefix /opt/venvs/vdirsyncer-latest \
*.tar.gz

RUN mv /vdirsyncer/vdirsyncer/*.deb /vdirsyncer/pkgs/

WORKDIR /vdirsyncer/pkgs/
RUN dpkg -i *.deb
RUN LC_ALL=C.UTF-8 LANG=C.UTF-8 /opt/venvs/vdirsyncer-latest/bin/vdirsyncer --version

Install google dependencies in debian pkgs

ARG distro
ARG distrover

FROM $distro:$distrover

ARG distro
ARG distrover

RUN apt-get update
RUN apt-get install -y build-essential fakeroot debhelper git
RUN apt-get install -y python3-all python3-pip
RUN apt-get install -y ruby ruby-dev
RUN apt-get install -y python-all python-pip

RUN gem install fpm

RUN pip2 install virtualenv-tools
RUN pip3 install virtualenv
RUN virtualenv -p python3 /vdirsyncer/env/

COPY . /vdirsyncer/vdirsyncer/
WORKDIR /vdirsyncer/vdirsyncer/
RUN mkdir /vdirsyncer/pkgs/

RUN basename *.tar.gz .tar.gz | cut -d'-' -f2 | sed -e 's/\.dev/~/g' | tee version
RUN (echo -n *.tar.gz; echo '[google]') | tee requirements.txt
RUN . /vdirsyncer/env/bin/activate; fpm -s virtualenv -t deb \
-n "vdirsyncer-latest" \
-v "$(cat version)" \
--prefix /opt/venvs/vdirsyncer-latest \
requirements.txt

RUN mv /vdirsyncer/vdirsyncer/*.deb /vdirsyncer/pkgs/

WORKDIR /vdirsyncer/pkgs/
RUN dpkg -i *.deb
RUN LC_ALL=C.UTF-8 LANG=C.UTF-8 /opt/venvs/vdirsyncer-latest/bin/vdirsyncer --version


<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="Bootstrap.php"
         colors="true"
         verbose="true"
         backupGlobals="false"
         backupStaticAttributes="false"
         stopOnFailure="false">
    <testsuites>
        <testsuite name="AssetsBundleTest">
            <directory suffix=".php">./AssetsBundleTest/</directory>
            <exclude>./AssetsBundleTest/_files/</exclude>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist>
            <directory suffix=".php">../src/</directory>
        </whitelist>
    </filter>
    <logging>
		<log type="coverage-clover" target="./clover.xml"/>
	</logging>
</phpunit>

Add module.php to code coverage test

<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="Bootstrap.php"
         colors="true"
         verbose="true"
         backupGlobals="false"
         backupStaticAttributes="false"
         stopOnFailure="false">
    <testsuites>
        <testsuite name="AssetsBundleTest">
            <directory suffix=".php">./AssetsBundleTest/</directory>
            <exclude>./AssetsBundleTest/_files/</exclude>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist>
            <directory suffix=".php">../src/</directory>
            <file>../Module.php</file>
        </whitelist>
    </filter>
    <logging>
		<log type="coverage-clover" target="./clover.xml"/>
	</logging>
</phpunit>


#	@(#)Makefile	8.1 (Berkeley) 6/6/93

PROG=	kdump
CFLAGS+=-I${.CURDIR}/../ktrace -I${.CURDIR}/../..
SRCS=	kdump.c ioctl.c subr.c
.PATH:	${.CURDIR}/../ktrace
CLEANFILES+=ioctl.c

ioctl.c: mkioctls
	/bin/sh ${.CURDIR}/mkioctls > ioctl.c

.include <bsd.prog.mk>

Make sure DESTDIR is set in the environment of mkioctls. This fixes the breakage people have encountered at certain times (for example when the altq_*.h files were removed).

#	@(#)Makefile	8.1 (Berkeley) 6/6/93
# $FreeBSD$

PROG=	kdump
CFLAGS+=-I${.CURDIR}/../ktrace -I${.CURDIR}/../..
SRCS=	kdump.c ioctl.c subr.c
.PATH:	${.CURDIR}/../ktrace
CLEANFILES+=ioctl.c

ioctl.c: mkioctls
	DESTDIR=${DESTDIR} /bin/sh ${.CURDIR}/mkioctls > ioctl.c

.include <bsd.prog.mk>


<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.0/phpunit.xsd"
         bootstrap="vendor/autoload.php"
         backupGlobals="false"
         verbose="true"
         strict="true"
         colors="false">
    <testsuite name="small">
      <directory suffix="Test.php">tests</directory>
    </testsuite>

    <filter>
      <whitelist processUncoveredFilesFromWhitelist="true">
        <directory suffix=".php">src</directory>
      </whitelist>
    </filter>
</phpunit>

Add some colors to phpunit output! :)

<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.0/phpunit.xsd"
         bootstrap="vendor/autoload.php"
         backupGlobals="false"
         verbose="true"
         strict="true"
         colors="true">
    <testsuite name="unit-tests">
      <directory suffix="Test.php">tests</directory>
    </testsuite>

    <filter>
      <whitelist processUncoveredFilesFromWhitelist="true">
        <directory suffix=".php">src</directory>
      </whitelist>
    </filter>
</phpunit>


<?xml version="1.0" encoding="utf-8"?>
<!--
    phpunit -c phpunit.xml
-->
<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         syntaxCheck="true"
         forceCoversAnnotation="true"
         bootstrap="./vendor/autoload.php">

    <testsuites>
        <testsuite name="unit">
            <directory>./tests/UnitTest/</directory>
        </testsuite>
        <testsuite name="integration">
            <directory>./tests/IntegrationTest/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">src</directory>
        </whitelist>
    </filter>

</phpunit>

Exclude the template file from PHPUnit's code coverage tool

<?xml version="1.0" encoding="utf-8"?>
<!--
    phpunit -c phpunit.xml
-->
<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         syntaxCheck="true"
         forceCoversAnnotation="true"
         bootstrap="./vendor/autoload.php">

    <testsuites>
        <testsuite name="unit">
            <directory>./tests/UnitTest/</directory>
        </testsuite>
        <testsuite name="integration">
            <directory>./tests/IntegrationTest/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">src</directory>
            <exclude>
                <file>src/DI/Compiler/Template.php</file>
            </exclude>
        </whitelist>
    </filter>

</phpunit>


<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         bootstrap="vendor/autoload.php"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         syntaxCheck="false">
    <testsuites>
        <testsuite name="Tala Payments Test Suite">
            <directory>./tests/</directory>
        </testsuite>
    </testsuites>
</phpunit>

Add mockery listener to phpunit

<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         bootstrap="vendor/autoload.php"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         syntaxCheck="false">
    <testsuites>
        <testsuite name="Tala Payments Test Suite">
            <directory>./tests/</directory>
        </testsuite>
    </testsuites>
    <listeners>
        <listener class="Mockery\Adapter\Phpunit\TestListener" file="vendor/mockery/mockery/library/Mockery/Adapter/Phpunit/TestListener.php" />
    </listeners>
</phpunit>


<?xml version="1.0"?>
<phpunit bootstrap="src/test/php/PDepend/bootstrap.php">
    <php>
        <ini name="date.timezone" value="UTC" />
    </php>

    <testsuites>
        <testsuite name="PHP Depends Test Suite">
            <directory suffix="Test.php">src/test/php</directory>
            <directory suffix=".phpt">src/test/php</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist addUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">src/main/php/PHP</directory>

            <exclude>
                <!-- Exclude this exotic result printer -->
                <file>src/main/php/PDepend/DbusUI/ResultPrinter.php</file>
            </exclude>
        </whitelist>
    </filter>
</phpunit>

Exclude all files from vendor from code coverage

<?xml version="1.0"?>
<phpunit bootstrap="src/test/php/PDepend/bootstrap.php">
    <php>
        <ini name="date.timezone" value="UTC" />
    </php>

    <testsuites>
        <testsuite name="PHP Depends Test Suite">
            <directory suffix="Test.php">src/test/php</directory>
            <directory suffix=".phpt">src/test/php</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist addUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">src/main/php/PHP</directory>

            <exclude>
                <!-- Exclude all vendor files -->
                <directory suffix=".php">vendor/</directory>
                <!-- Exclude this exotic result printer -->
                <file>src/main/php/PDepend/DbusUI/ResultPrinter.php</file>
            </exclude>
        </whitelist>
    </filter>
</phpunit>


<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="false"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         syntaxCheck="false"
         bootstrap="Tests/bootstrap.php"
>
    <php>
        <env name="SYMFONY_DEPRECATIONS_HELPER" value="weak" />
    </php>
    <testsuites>
        <testsuite name="HackzillaTicketBundle test suite">
            <directory suffix="Test.php">./Tests</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>./</directory>
            <exclude>
                <directory>./Resources</directory>
                <directory>./Tests</directory>
                <directory>./vendor</directory>
            </exclude>
        </whitelist>
    </filter>
</phpunit>

Remove "syntaxCheck" config for PHPUnit

<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="false"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         bootstrap="Tests/bootstrap.php"
>
    <php>
        <env name="SYMFONY_DEPRECATIONS_HELPER" value="weak" />
    </php>
    <testsuites>
        <testsuite name="HackzillaTicketBundle test suite">
            <directory suffix="Test.php">./Tests</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>./</directory>
            <exclude>
                <directory>./Resources</directory>
                <directory>./Tests</directory>
                <directory>./vendor</directory>
            </exclude>
        </whitelist>
    </filter>
</phpunit>


<phpunit colors="true">
    <testsuites>
        <testsuite name="Tests">
            <directory>./tests/phpunit</directory>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist addUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">./src</directory>
        </whitelist>
    </filter>
</phpunit>

Enable all PHPUnit strict checks

<phpunit colors="true"
    beStrictAboutTestsThatDoNotTestAnything="true"
    checkForUnintentionallyCoveredCode="true"
    beStrictAboutOutputDuringTests="true"
    beStrictAboutTestSize="true"
    beStrictAboutChangesToGlobalState="true">
    <testsuites>
        <testsuite name="Tests">
            <directory>./tests/phpunit</directory>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist addUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">./src</directory>
        </whitelist>
    </filter>
</phpunit>


# ===================================================================================
#  The Tesseract CMake configuration file
#
#             ** File generated automatically, do not modify **
#
#  Usage from an external project:
#    In your CMakeLists.txt, add these lines:
#
#    find_package(Tesseract REQUIRED)
#    target_link_libraries(MY_TARGET_NAME Tesseract::libtesseract)
#
#    This file will define the following variables:
#      - Tesseract_LIBRARIES             : The list of all imported targets for OpenCV modules.
#      - Tesseract_INCLUDE_DIRS          : The Tesseract include directories.
#
# ===================================================================================

include(CMakeFindDependencyMacro)
find_dependency(Leptonica)

include(${CMAKE_CURRENT_LIST_DIR}/TesseractTargets.cmake)

@PACKAGE_INIT@

set_and_check(Tesseract_INCLUDE_DIRS "@PACKAGE_INCLUDE_DIR@")
set(Tesseract_LIBRARIES libtesseract)

check_required_components(Tesseract)

Fix linking Tesseract to project using CMake on Linux

# ===================================================================================
#  The Tesseract CMake configuration file
#
#             ** File generated automatically, do not modify **
#
#  Usage from an external project:
#    In your CMakeLists.txt, add these lines:
#
#    find_package(Tesseract REQUIRED)
#    target_link_libraries(MY_TARGET_NAME Tesseract::libtesseract)
#
#    This file will define the following variables:
#      - Tesseract_LIBRARIES             : The list of all imported targets for OpenCV modules.
#      - Tesseract_INCLUDE_DIRS          : The Tesseract include directories.
#
# ===================================================================================

include(CMakeFindDependencyMacro)
find_dependency(Leptonica)

include(${CMAKE_CURRENT_LIST_DIR}/TesseractTargets.cmake)

@PACKAGE_INIT@

set_and_check(Tesseract_INCLUDE_DIRS "@PACKAGE_INCLUDE_DIR@")
set(Tesseract_LIBRARIES tesseract)

check_required_components(Tesseract)


#!/bin/sh

cd "@abs_top_builddir@/tests/twisted/tools"

export SALUT_DEBUG=all GIBBER_DEBUG=all
ulimit -c unlimited
exec > salut-testing.log 2>&1

if test -n "$SALUT_TEST_VALGRIND"; then
	export G_DEBUG=gc-friendly
	export G_SLICE=always-malloc
	SALUT_WRAPPER="valgrind --leak-check=full --num-callers=20"
elif test -n "$SALUT_TEST_REFDBG"; then
        if test -z "$REFDBG_OPTIONS" ; then
                export REFDBG_OPTIONS="btnum=10"
        fi
        if test -z "$SALUT_WRAPPER" ; then
                SALUT_WRAPPER="refdbg"
        fi
fi

export G_DEBUG=fatal-warnings" ${G_DEBUG}"
exec @abs_top_builddir@/libtool --mode=execute $SALUT_WRAPPER @abs_top_builddir@/src/telepathy-salut

Set DBUS_SYSTEM_BUS_ADDRESS before launching the CM process

#!/bin/sh

cd "@abs_top_builddir@/tests/twisted/tools"

export SALUT_DEBUG=all GIBBER_DEBUG=all
ulimit -c unlimited
exec > salut-testing.log 2>&1

if test -n "$SALUT_TEST_VALGRIND"; then
	export G_DEBUG=gc-friendly
	export G_SLICE=always-malloc
	SALUT_WRAPPER="valgrind --leak-check=full --num-callers=20"
elif test -n "$SALUT_TEST_REFDBG"; then
        if test -z "$REFDBG_OPTIONS" ; then
                export REFDBG_OPTIONS="btnum=10"
        fi
        if test -z "$SALUT_WRAPPER" ; then
                SALUT_WRAPPER="refdbg"
        fi
fi

# The bus-daemon that is activating us doesn't know it's also the system bus
export DBUS_SYSTEM_BUS_ADDRESS="$DBUS_SESSION_BUS_ADDRESS"

export G_DEBUG=fatal-warnings" ${G_DEBUG}"
exec @abs_top_builddir@/libtool --mode=execute $SALUT_WRAPPER @abs_top_builddir@/src/telepathy-salut


[Desktop Entry]
Type=Link
Name=Configuration - Profiles
Icon=e-module-conf_profiles
Comment=<hilight>E17 Configuration Applet</hilight><br>Allows management of configuration profiles.

Add line break so it fits in min size.

[Desktop Entry]
Type=Link
Name=Configuration - Profiles
Icon=e-module-conf_profiles
Comment=<hilight>E17 Configuration Applet</hilight>
Allows management of configuration
profiles.


# $FreeBSD$

PROG_CXX=	groff
SRCS=		groff.cc pipeline.c
DPADD=		${LIBGROFF} ${LIBM}
LDADD=		${LIBGROFF} -lm
CLEANFILES=	${MAN}

.if ${MACHINE_ARCH} == "alpha"
#XXXX ld produces only one PT_LOAD segment when this binary
#XXXX is linked dynamically, which confuses the rtld
NOSHARED?=	yes
.endif

.include <bsd.prog.mk>

Remove the hack to build groff statically on alpha, now that the rtld has been extended to grok binaries with only one PLT_LOAD segment

# $FreeBSD$

PROG_CXX=	groff
SRCS=		groff.cc pipeline.c
DPADD=		${LIBGROFF} ${LIBM}
LDADD=		${LIBGROFF} -lm
CLEANFILES=	${MAN}

.include <bsd.prog.mk>


<?xml version="1.0" encoding="UTF-8"?>

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
         backupGlobals="false"
         colors="true"
         bootstrap="vendor/autoload.php"
>
    <testsuites>
        <testsuite name="Symfony Validator Component Test Suite">
            <directory>./Tests/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>./</directory>
            <exclude>
                <directory>./vendor</directory>
                <directory>./Tests</directory>
            </exclude>
        </whitelist>
    </filter>
</phpunit>

Adjust error_reporting to allow deprecation messages for 3.0

<?xml version="1.0" encoding="UTF-8"?>

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
         backupGlobals="false"
         colors="true"
         bootstrap="vendor/autoload.php"
>
    <php>
        <!-- Disable E_USER_DEPRECATED until 3.0 -->
        <!-- php -r 'echo -1 & ~E_USER_DEPRECATED;' -->
        <ini name="error_reporting" value="-16385"/>
    </php>

    <testsuites>
        <testsuite name="Symfony Validator Component Test Suite">
            <directory>./Tests/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>./</directory>
            <exclude>
                <directory>./vendor</directory>
                <directory>./Tests</directory>
            </exclude>
        </whitelist>
    </filter>
</phpunit>


<?xml version="1.0" encoding="UTF-8"?>

<phpunit
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/5.0/phpunit.xsd"
        colors="true"
        convertErrorsToExceptions="true"
        convertNoticesToExceptions="true"
        convertWarningsToExceptions="true"
        syntaxCheck="true">

    <testsuites>
        <testsuite name="Stratadox/Di test suite">
            <directory suffix="Test.php">tests</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>src</directory>
        </whitelist>
    </filter>

    <logging>
        <log type="coverage-clover" target="build/logs/clover.xml" />
    </logging>

    <php>
        <ini name="error_reporting" value="-1" />
        <ini name="intl.default_locale" value="en" />
        <ini name="intl.error_level" value="0" />
        <ini name="memory_limit" value="-1" />
    </php>
</phpunit>

Add visual test coverage information

<?xml version="1.0" encoding="UTF-8"?>

<phpunit
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/5.0/phpunit.xsd"
        colors="true"
        convertErrorsToExceptions="true"
        convertNoticesToExceptions="true"
        convertWarningsToExceptions="true">

    <testsuites>
        <testsuite name="Stratadox/Di test suite">
            <directory suffix="Test.php">tests</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>src</directory>
        </whitelist>
    </filter>

    <logging>
        <log type="coverage-clover" target="build/logs/clover.xml" />
        <log type="coverage-text" target="php://stdout" showUncoveredFiles="false"/>
    </logging>

    <php>
        <ini name="error_reporting" value="-1" />
        <ini name="intl.default_locale" value="en" />
        <ini name="intl.error_level" value="0" />
        <ini name="memory_limit" value="-1" />
    </php>
</phpunit>


<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="true"
         backupStaticAttributes="true"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         syntaxCheck="true"
         verbose="true">
    <testsuites>
        <testsuite name="OTPAuthenticate Test Suite">
            <directory suffix=".php">./tests</directory>
        </testsuite>
    </testsuites>
</phpunit>

Add directory whitelist for code coverage

<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="true"
         backupStaticAttributes="true"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         syntaxCheck="true"
         verbose="true">
    <testsuites>
        <testsuite name="OTPAuthenticate Test Suite">
            <directory suffix=".php">./tests</directory>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist>
            <directory suffix=".php">./lib/</directory>
        </whitelist>
    </filter>
</phpunit>


execute_process(COMMAND rm -f @PROJECT_BINARY_DIR@/medInria-@@PROJECT_NAME@_VERSION@.dmg)
execute_process(COMMAND @PROJECT_BINARY_DIR@/medInria/build/mac_packager.sh @PROJECT_BINARY_DIR@/medInria/build/plugins @PRIVATE_PLUGINS_DIRS@)
execute_process(COMMAND mv -f @PROJECT_BINARY_DIR@/medInria/build/medInria-@@PROJECT_NAME@_VERSION@.dmg @PROJECT_BINARY_DIR@)

Update apple packaging script so that plugin paths are now pointing to build dir and separated with semicolons

execute_process(COMMAND rm -f @PROJECT_BINARY_DIR@/medInria-@@PROJECT_NAME@_VERSION@.dmg)
execute_process(COMMAND @PROJECT_BINARY_DIR@/medInria/build/mac_packager.sh @PROJECT_BINARY_DIR@/medInria/build @PRIVATE_PLUGINS_DIRS@)
execute_process(COMMAND mv -f @PROJECT_BINARY_DIR@/medInria/build/medInria-@@PROJECT_NAME@_VERSION@.dmg @PROJECT_BINARY_DIR@)


# $FreeBSD$

PROG=	ancontrol
MAN=	ancontrol.8

WARNS?=	2
CFLAGS+= -DANCACHE -I${.CURDIR}/../../sys

DPADD=	${LIBMD}
LDADD=	-lmd

.include <bsd.prog.mk>

Mark as WARNS 6 now that sign cleanups are done.

# $FreeBSD$

PROG=	ancontrol
MAN=	ancontrol.8

WARNS?=	6
CFLAGS+= -DANCACHE -I${.CURDIR}/../../sys

DPADD=	${LIBMD}
LDADD=	-lmd

.include <bsd.prog.mk>