X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mail.bitmessage.ch (mail.bitmessage.ch [146.228.112.252]) by lists.alpinelinux.org (Postfix) with ESMTP id 30B255C43E2 for ; Fri, 4 Nov 2016 21:24:33 +0000 (GMT) dkim-signature: v=1; a=rsa-sha256; d=bitmessage.ch; s=mail; c=relaxed/relaxed; q=dns/txt; h=From:Subject:Date:Message-ID:To:MIME-Version:Content-Type; bh=LnTkNvS85sZa+yUNwMjgb2H3SFf26nfyf1fWMFKWNfg=; b=DyoFLsyuADKW4P07lNeNYZ+eLUbfnFP3nj7neyxGaNXqIf39ymNFqvLb4sRgIgCRS05Ru2xKR+ogQP+dfeL6mlcusyMyD8Lnn6CP9xgg/FUL8krvHxmBg82I8ARMYgf6/q5VZu3VE31JUN0gRz5lcoJyxf3Itj+un1yOklPl3Lw= Received: from trust.olympus (Unknown [162.216.46.84]) by mail.bitmessage.ch with ESMTPSA (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256) ; Fri, 4 Nov 2016 22:24:10 +0100 Date: Fri, 4 Nov 2016 14:24:27 -0700 From: xcko shrdlu To: alpine-aports@lists.alpinelinux.org Subject: [alpine-aports] [PATCH] testing/splint: new aport Message-ID: <20161104212427.GA17165@trust.olympus> X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline http://www.splint.org/ Statically check C programs for security vulnerabilities and coding mistakes --- testing/splint/APKBUILD | 36 ++++++++++++++++++++++++++++++++++++ testing/splint/splint.sh | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 testing/splint/APKBUILD create mode 100644 testing/splint/splint.sh diff --git a/testing/splint/APKBUILD b/testing/splint/APKBUILD new file mode 100644 index 0000000..6714fd5 --- /dev/null +++ b/testing/splint/APKBUILD @@ -0,0 +1,36 @@ +# Contributor: xcko shrdlu +# Maintainer: xcko shrdlu +pkgname=splint +pkgver=3.1.2 +pkgrel=0 +pkgdesc="Statically check C programs for security vulnerabilities and coding mistakes" +url="http://www.splint.org/" +arch="all" +license="GPL2" +depends="flex" +depends_dev="" +makedepends="flex-dev autoconf" +install="" +subpackages="$pkgname-doc $pkgname-dev" +source="http://www.splint.org/downloads/${pkgname}-${pkgver}.src.tgz splint.sh" + +builddir="$srcdir"/$pkgname-$pkgver +build() { + cd "$builddir" + sed -i 's/__pid_t/pid_t/' src/osd.c || return 1 + autoconf + ./configure --prefix=/usr --mandir=/usr/share/man + make LDFLAGS="$LDFLAGS -lfl" +} + +package() { + cd "$builddir" + make DESTDIR="${pkgdir}" install + install -D -m644 "${srcdir}"/splint.sh "${pkgdir}"/etc/profile.d/splint.sh +} +md5sums="25f47d70bd9c8bdddf6b03de5949c4fd splint-3.1.2.src.tgz +0efb6341b384dc44590989fe3678c96c splint.sh" +sha256sums="c78db643df663313e3fa9d565118391825dd937617819c6efc7966cdf444fb0a splint-3.1.2.src.tgz +ea90b733037ef1ad25a0a5f39cbb33ca747dabd3b2bfd9d087f3981bc6990b61 splint.sh" +sha512sums="9bbf3f6575763c022940efde947f845f52095a1bcf645f7f4a98feb335b62d2bd50d78420e7fe95f81eb139b110d8fe48112b025deace45f7994360b20d47e0b splint-3.1.2.src.tgz +ea9260a69f7110c63f51dbf15429be519cbf01d25267a23d527cb0266bf5450102f7a4ad1e6e43b72a68da6ef94a8b735dd447e644536049469aab9be9435b32 splint.sh" diff --git a/testing/splint/splint.sh b/testing/splint/splint.sh new file mode 100644 index 0000000..6ff8d91 --- /dev/null +++ b/testing/splint/splint.sh @@ -0,0 +1,2 @@ +export LCLIMPORTDIR=/usr/share/splint/imports +export LARCH_PATH=/usr/share/splint/lib -- 2.8.3 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---