ports/contrib (3.4): at: add fix from debian vcs sources
commit 8daf8f32a946e2d1f50185b14cdcd9a97260c445 Author: John Vogel <jvogel4@stny.rr.com> Date: Sun Dec 23 11:48:10 2018 -0500 at: add fix from debian vcs sources diff --git a/at/.signature b/at/.signature index 557e053e..a19e2566 100644 --- a/at/.signature +++ b/at/.signature @@ -1,6 +1,7 @@ untrusted comment: verify with /etc/ports/contrib.pub -RWSagIOpLGJF3x3Q16Voi9FHGnBQ/CKPpg3/bZG25/mzx+nBOKnQZsLiH+VaV697Std87hSqHf+rDtuY6ZqXvGZ5zkSi/1sFGwE= -SHA256 (Pkgfile) = e356a19c788a6df705c02ce31e6b6e75e71bf278cdf9d4b0bb7330f70d42d481 +RWSagIOpLGJF34B725hp7WFTNJt/6l9/m+j8u24v/oSr+NlA60L+ybjS8//yNfNrje2FPvljSqGPZHfeZbdsWQznZveKUjRszws= +SHA256 (Pkgfile) = 2db132be2349f6c6f3fb4d1396e2b4b9f3942c9fcad063086bdfdd53769174c9 SHA256 (.footprint) = 60feeb0ada64af8cf2577b02f5735b8ea2786da8ccd3ae9e67aa5e6103730bb5 SHA256 (at_3.1.20.orig.tar.gz) = 0871923cab73050b98ace020664eb2ddc1e669e4166b5abb64d864d02fcefab9 +SHA256 (fix_fcntl_call.diff) = 5deae50ffa58b7ef65f8e4df453cc6bb426f1420c2d3334b7d652f42133d1aba SHA256 (atd) = 832b65588cde8e9f13afb314c6546186d554bb459d04d98e9e4d5a95a6f10b01 diff --git a/at/Pkgfile b/at/Pkgfile index 4b05b4a2..be13d101 100644 --- a/at/Pkgfile +++ b/at/Pkgfile @@ -1,21 +1,29 @@ # Description: at, batch - queue, examine or delete jobs for later execution -# URL: http://ftp.debian.org/debian/pool/main/a/at/ +# URL: http://blog.calhariz.com/tag/at # Maintainer: John Vogel, jvogel4 at stny dot rr dot com # Depends on: exim name=at version=3.1.20 -release=1 -source=(http://ftp.debian.org/debian/pool/main/a/$name/${name}_$version.orig.tar.gz \ +release=2 +source=(http://blog.calhariz.com/public/sft/$name/${name}_$version.orig.tar.gz + fix_fcntl_call.diff atd) build() { - cd $name-$version - export SENDMAIL=/usr/sbin/sendmail - autoreconf - CONFIG_SHELL=/bin/bash ./configure --prefix=/usr - make -j1 - make IROOT=$PKG install - rm -r $PKG/usr/doc - install -D -m 0755 $SRC/atd $PKG/etc/rc.d/atd + cd $name-$version + + patch -p1 < $SRC/fix_fcntl_call.diff + + autoreconf + + SENDMAIL=/usr/sbin/sendmail \ + CONFIG_SHELL=/bin/bash \ + ./configure --prefix=/usr + + make -j1 + make IROOT=$PKG install + + rm -r $PKG/usr/doc + install -D -m 0755 $SRC/atd $PKG/etc/rc.d/atd } diff --git a/at/fix_fcntl_call.diff b/at/fix_fcntl_call.diff new file mode 100644 index 00000000..d0e30507 --- /dev/null +++ b/at/fix_fcntl_call.diff @@ -0,0 +1,13 @@ +diff --git a/daemon.c b/daemon.c +index f9d25e718757b243388a6146cc5d8de344fcbc54..4003b5618e37061d93a731d38ac3cc7ac99763d5 100644 +--- a/daemon.c ++++ b/daemon.c +@@ -205,7 +205,7 @@ daemon_setup() + * want to keep the file descriptor in case of an exec(). + */ + fflush(fp); +- fcntl(fd, F_SETFD, (long) 1); ++ fcntl(fd, F_SETFD, FD_CLOEXEC); + PRIV_END + + return;
participants (1)
-
crux@crux.nu