New package: socklog-2.1.0
This commit is contained in:
parent
b537fbbc4b
commit
85f29085d9
48
srcpkgs/socklog/patches/cross.patch
Normal file
48
srcpkgs/socklog/patches/cross.patch
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
chskshsgr must be built for the host.
|
||||||
|
|
||||||
|
--- src/Makefile.orig 2014-07-18 18:38:30.305068171 +0200
|
||||||
|
+++ src/Makefile 2014-07-18 18:40:28.028069614 +0200
|
||||||
|
@@ -117,11 +117,11 @@
|
||||||
|
byte_zero.o: byte.h byte_zero.c compile
|
||||||
|
./compile byte_zero.c
|
||||||
|
|
||||||
|
-chkshsgr: chkshsgr.o load
|
||||||
|
- ./load chkshsgr
|
||||||
|
+chkshsgr: chkshsgr.o loadhost
|
||||||
|
+ ./loadhost chkshsgr
|
||||||
|
|
||||||
|
-chkshsgr.o: chkshsgr.c compile
|
||||||
|
- ./compile chkshsgr.c
|
||||||
|
+chkshsgr.o: chkshsgr.c compilehost
|
||||||
|
+ ./compilehost chkshsgr.c
|
||||||
|
|
||||||
|
choose: choose.sh warn-auto.sh
|
||||||
|
rm -f choose
|
||||||
|
@@ -137,6 +137,11 @@
|
||||||
|
sh print-cc.sh > compile
|
||||||
|
chmod 555 compile
|
||||||
|
|
||||||
|
+compilehost:
|
||||||
|
+ cat warn-auto.sh > compilehost
|
||||||
|
+ @echo 'exec cc -c $${1+"$$@"}' >> compilehost
|
||||||
|
+ chmod 555 compilehost
|
||||||
|
+
|
||||||
|
direntry.h: choose compile direntry.h1 direntry.h2 trydrent.c
|
||||||
|
./choose c trydrent direntry.h1 direntry.h2 > direntry.h
|
||||||
|
|
||||||
|
@@ -198,6 +203,15 @@
|
||||||
|
sh print-ld.sh > load
|
||||||
|
chmod 555 load
|
||||||
|
|
||||||
|
+loadhost:
|
||||||
|
+ rm -f loadhost
|
||||||
|
+ @echo > loadhost
|
||||||
|
+ @echo 'systype="`cat systype`"' >> loadhost
|
||||||
|
+ @echo 'cat warn-auto.sh' >> loadhost
|
||||||
|
+ @echo 'main="$$1"; shift' >> loadhost
|
||||||
|
+ @echo 'exec cc -o "$$main" "$$main".o $${1+"$$@"}' >> loadhost
|
||||||
|
+ chmod 555 loadhost
|
||||||
|
+
|
||||||
|
lock_ex.o: compile hasflock.h lock.h lock_ex.c
|
||||||
|
./compile lock_ex.c
|
||||||
|
|
35
srcpkgs/socklog/template
Normal file
35
srcpkgs/socklog/template
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
# Template file for 'socklog'
|
||||||
|
pkgname=socklog
|
||||||
|
version=2.1.0
|
||||||
|
revision=1
|
||||||
|
wrksrc=admin/${pkgname}-${version}
|
||||||
|
short_desc="Small and secure syslogd replacement for use with runit"
|
||||||
|
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
||||||
|
license="custom"
|
||||||
|
homepage="http://smarden.org/socklog/"
|
||||||
|
distfiles="http://smarden.org/socklog/${pkgname}-${version}.tar.gz"
|
||||||
|
checksum=aa869a787ee004da4e5509b5a0031bcc17a4ab4ac650c2ce8d4e488123acb455
|
||||||
|
|
||||||
|
build_options="static"
|
||||||
|
|
||||||
|
do_build() {
|
||||||
|
if [ "$build_option_static" ]; then
|
||||||
|
LDFLAGS+=" -static"
|
||||||
|
fi
|
||||||
|
echo "$CC -D_GNU_SOURCE $CFLAGS" >src/conf-cc
|
||||||
|
echo "$CC $LDFLAGS -Wl,-z -Wl,noexecstack" >src/conf-ld
|
||||||
|
package/compile
|
||||||
|
}
|
||||||
|
|
||||||
|
do_install() {
|
||||||
|
for bin in command/*; do
|
||||||
|
vbin $bin
|
||||||
|
done
|
||||||
|
for man in man/*; do
|
||||||
|
vman $man
|
||||||
|
done
|
||||||
|
for doc in doc/*.html; do
|
||||||
|
vdoc $doc
|
||||||
|
done
|
||||||
|
vlicense package/COPYING
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user