X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 0BBDEDC189A for ; Tue, 9 Feb 2016 10:44:26 +0000 (UTC) Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 80B3ADC16D3 for ; Tue, 9 Feb 2016 10:44:24 +0000 (UTC) Received: by mail-wm0-f41.google.com with SMTP id c200so54167504wme.0 for ; Tue, 09 Feb 2016 02:44:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:cc:date:in-reply-to:references :content-type:mime-version; bh=D9iTbUNzWtR1aXtVtpl9z8JYo+wArAU6U9jLovVa/dw=; b=GH+RdM3FIofhPFlcvmQ+M3bb9BmiUmLiTtA/RDNcvdNaBVs9HMYl/rdNU/mGTYzSBi xxj2OB7l1Zc1yR5135FR9IdKDbHSwnG2bu/S9b+V17qGpaDxAaRSfYf9VGtVqZoR9BrB Mz3wVeMLgheOpqRGfayBQGco234RzKh9qfm5DWSC2idqMchyYuOPOcjDpFwVg37KorTB bAK8yiszdeIQa6RlL1GpIv3oA7dUsQJXgg0aNFEPnQNL4HZ5hq2J7z+d2H7S/P/8Iyct gd+XGtWxMDuS3fY+YrkXKUk9Noe+zAtVkcilPbrJAlI6e1TPTiOFp0+fFq6P4dZAMJNV 8ikg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:content-type:mime-version; bh=D9iTbUNzWtR1aXtVtpl9z8JYo+wArAU6U9jLovVa/dw=; b=UvA0nGiIcgkDEoeo0pBLs3mQBw8vJS19zFcOGokOYGIc7o+7sdkP9FKXlTKC63DcKj +Fys78zaCNBo24IlUh5lq6DOzna6+H/1r7n5u/KsbXWQzV5SzSp7OCRrtFhvR7LWMJRv 9pF9KSyYwiamfG44ccnNQEAX1UuXCJOGnHvAC9DMPIMVMIyBC55jdRch12y8D/qi1Kmq +jss7DegaK7HDCmhv7Qlw41q2NTH5PiOmCbTDUaMMauPzO3xe2t067pIm/cvnySDllhv I++8JvMQz6srMfwpD8MmvuaFRun/uluGsSOVYsZWcG0vIGyzYLLN+e9wi/9O3WPlmlgn etnA== X-Gm-Message-State: AG10YOTaAcl3iKRIHTStg0cj9NwltCondgZM8uo6ddXompxhD5ZW66AwiPRXxHlRW9Xlmw== X-Received: by 10.28.140.210 with SMTP id o201mr4167071wmd.28.1455014662912; Tue, 09 Feb 2016 02:44:22 -0800 (PST) Received: from [10.44.65.254] ([89.202.239.194]) by smtp.googlemail.com with ESMTPSA id u9sm3420544wmd.4.2016.02.09.02.44.21 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 09 Feb 2016 02:44:21 -0800 (PST) Message-ID: <1455014656.29660.9.camel@df1844j> Subject: Re: [alpine-aports] [PATCH] testing/at: new aport From: Leonardo Arena To: Alexander Belkov Cc: alpine-aports@lists.alpinelinux.org Date: Tue, 09 Feb 2016 11:44:16 +0100 In-Reply-To: <1454582321-3254-1-git-send-email-msun00@yandex.ru> References: <1454582321-3254-1-git-send-email-msun00@yandex.ru> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-P35eg/TgH/u+vJCEiL68" X-Mailer: Evolution 3.10.4-0ubuntu2 X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 X-Virus-Scanned: ClamAV using ClamSMTP --=-P35eg/TgH/u+vJCEiL68 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you! Could you please see comments below? The first comment address something to be fixed. The other are just cosmetic bugs. On gio, 2016-02-04 at 10:38 +0000, Alexander Belkov wrote: > http://packages.qa.debian.org/a/at.html > AT and batch delayed command scheduling utility and daemon > --- > testing/at/10-Makefile.in-1.patch | 11 ++++++ > testing/at/10-parsetime.l-1.patch | 11 ++++++ > testing/at/10-parsetime.y-1.patch | 12 ++++++ > testing/at/APKBUILD | 79 +++++++++++++++++++++++++++++++++= ++++++ > testing/at/at.allow | 1 + > testing/at/at.initd | 27 +++++++++++++ > testing/at/at.pre-install | 16 ++++++++ > 7 files changed, 157 insertions(+) > create mode 100644 testing/at/10-Makefile.in-1.patch > create mode 100644 testing/at/10-parsetime.l-1.patch > create mode 100644 testing/at/10-parsetime.y-1.patch > create mode 100644 testing/at/APKBUILD > create mode 100644 testing/at/at.allow > create mode 100644 testing/at/at.initd > create mode 100644 testing/at/at.pre-install >=20 [snip] > diff --git a/testing/at/APKBUILD b/testing/at/APKBUILD > new file mode 100644 > index 0000000..3152a3e > --- /dev/null > +++ b/testing/at/APKBUILD > @@ -0,0 +1,79 @@ > +# Contributor: Alexander Belkov > +# Maintainer: > +pkgname=3Dat > +pkgver=3D3.1.16 > +pkgrel=3D2 > +pkgdesc=3D"AT and batch delayed command scheduling utility and daemon" > +url=3D"http://packages.qa.debian.org/a/at.html" > +arch=3D"all" > +license=3D"GPL" > +makedepends=3D"ssmtp flex-dev byacc" > +depends_dev=3D"" > +install=3D"${pkgname}.pre-install" > +options=3Dsuid > +subpackages=3D"at-doc" > +source=3D"http://http.debian.net/debian/pool/main/a/at/at_$pkgver.orig.t= ar.gz > + 10-parsetime.l-1.patch > + 10-parsetime.y-1.patch > + 10-Makefile.in-1.patch > + at.allow > + at.initd > + $install $install files should not go into $source > + " > + > +_builddir=3D"${srcdir}/at-${pkgver}" > +prepare() { > + local i > + cd "$_builddir" > + for i in $source; do > + case $i in > + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; > + esac > + done > +} > + > +build() { > + cd "$_builddir" > + LEXLIB=3D-lfl \ > + ./configure --prefix=3D/usr \ > + --sbindir=3D/usr/sbin \ > + --with-daemon_username=3Dat \ > + --with-daemon_groupname=3Dat \ > + --with-jobdir=3D/var/spool/atd \ > + --with-atspool=3D/var/spool/atd || return 1 > + make || return 1 > +} > + > +package() { > + cd "$_builddir" > + > + /usr/bin/install -D -o root -g at -m 640 "$srcdir"/at.allow \ > + "$pkgdir"/etc/at.allow || return 1 > + > + make IROOT=3D"$pkgdir" install || return 1 > + > + /usr/bin/install -m 755 -D "$srcdir"/at.initd \ > + "$pkgdir"/etc/init.d/at || return 1 > +} > + > +md5sums=3D"d05da75d9b75d93917ffb16ab48b1e19 at_3.1.16.orig.tar.gz > +abb292896ed30e1f248dfebf4c4a6fb8 10-parsetime.l-1.patch > +39823f4034d2b5b2000ca717938f930f 10-parsetime.y-1.patch > +519f72f88e58b5ce79aff376ec90fcc9 10-Makefile.in-1.patch > +74cc1c60799e0a786ac7094b532f01b1 at.allow > +1fdebfd6f648bcc0ea6a8f65acca483b at.initd > +3d32764a34e2d36d8ea9788bb15302d5 at.pre-install" > +sha256sums=3D"cb9af59c6a54edce9536ba629841055409d1f89d8ae26494727a97141f= b4d5c1 at_3.1.16.orig.tar.gz > +0f2bc8e5dbbc55d2b45a1d1bd5bb753180539d37e298d062daf090b055e84494 10-par= setime.l-1.patch > +baad966d910912a2c516fcb13f6f09b032e3ed4f677158e943c99f35cd31d9d8 10-par= setime.y-1.patch > +9ef0710b066f02665819d03ac85c161398b8eef3558a4645481c1e926cb41f79 10-Mak= efile.in-1.patch > +53175bcc0524f37b47062fafdda28e3f8eb91d519ca0a184ca71bbebe72f969a at.all= ow > +8d2ff3dd363c951c808138b49b37156197822003f6ddf7a96838d543a906e7c2 at.ini= td > +e08e691f914686cd17b3066e19e985b8f2eb84b668f011b1f0d43b7a2f3ff470 at.pre= -install" > +sha512sums=3D"d63132536d01153c4b38499b316c8a7980cd47a75b00fb5edc6e41f243= 45f97b55b20e5801d50f1bde2f337acc7bdb7e318456c241415e7b7bddee7e51e68ad5 at_= 3.1.16.orig.tar.gz > +5a8b180075be604e70d7ef311da9f143425a5e669c8fc5e58b43177fdbb0108e3ad4c5d1= edea68c9b013fd92fbbad7f9dd1ea0da51ffb1e745ff9ffa244f3401 10-parsetime.l-1.= patch > +130e1cf3c309516d7c3eed2af24a208f82db2367df7c594001695943e8408f77d6b33597= e16e128b5c4a9732f3b8c2d5225e7c3b0265512b2b1a92b24b83fcbc 10-parsetime.y-1.= patch > +40bdb7726b904a82125ce68971d995a623ee2fad42f7092ade227c08ba1bc07a50e18467= 7b66c8b9375aa97370ef9dcd6f583a4f857962630e8cf51bdb7a9ef4 10-Makefile.in-1.= patch > +21e1bc024bd76c76b68e04614c6def5b03fd4b658e59bfde065b464b520f463711b79545= 5e3a5c81a8a1946b2bca2f83d6c19300a4d3326ce17959a7cbc0846a at.allow > +4c0a9854acabe1226306b776e315c119775f026f699364d1a20a90e454576bf411ac2c55= c9899bd1a5630be2618d692d80250fe3a124e1dcc4fd557302191881 at.initd > +e2ef43a9265f5e3a2d876de5f751d7011424e6b6c0948da29b268c16e67240802b948e6f= 1bd6a79e989282b27fe5ff0873a8deca1896288b6b93780d86cde82f at.pre-install" > diff --git a/testing/at/at.allow b/testing/at/at.allow > new file mode 100644 > index 0000000..d8649da > --- /dev/null > +++ b/testing/at/at.allow > @@ -0,0 +1 @@ > +root > diff --git a/testing/at/at.initd b/testing/at/at.initd > new file mode 100644 > index 0000000..dcaa6cf > --- /dev/null > +++ b/testing/at/at.initd > @@ -0,0 +1,27 @@ > +#!/sbin/openrc-run > + > +# Sample init.d file for alpine linux. > + > +name=3Datd > +daemon=3D/usr/sbin/$name > + By convention we use "command" which points to full path binary. Also, OpenRC has built-in "$SVCNAME" which is the basename of the init script. > +depend() { > + after localmount > +} > + > +start() { > + ebegin "Starting command schedulng daemon ${name}" > + start-stop-daemon --start --quiet \ > + --pidfile /var/run/${name}.pid \ > + --exec ${daemon} > + eend $? > +} > + > +stop() { > + ebegin "Stopping command schedulng daemon ${name}" > + start-stop-daemon --stop --quiet \ > + --pidfile /var/run/$name.pid \ > + --exec ${daemon} > + eend $? > +} > + There are typos in "ebegin" lines. Thanks! - leo --=-P35eg/TgH/u+vJCEiL68 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAABAgAGBQJWucMAAAoJELAPckZGG2T6GSAH/A7/o5WF6bBCgExSAj8VrBBp n/bj4Tvhi24Ywfex3lVO0/9W1QxCHMX/xway4DzIfo1u/2OJ6dybIGJdSxhayniK G8QJZpzFpCHsUTPYkAYWaIC/Y/c8M+zoFqrCbx86IsZPvsnH7z6jdtxxTVzmnFdJ OEjRDrWvLEJ/jRxGeMokl0Az1OzBkzTgwWd0VIsnJMH1Kz0L3UZrU6qSMor+WbWz ejPub0Ipwron5+RXr6X5es1N2f+vfE6/gi7RV0357SLFw8Qi5/2GM7HxAe+/SAXZ B1XeffGXD5aPE6wMUNMtMcuspVdXfCU5ojQ1wL6ErJISWOe5qFZFjaRHEmYOmaY= =6Fhq -----END PGP SIGNATURE----- --=-P35eg/TgH/u+vJCEiL68-- --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---