From: Torsten Veller <ml-en@veller.net>
To: gentoo-dev@lists.gentoo.org, chainsaw@gentoo.org
Subject: [gentoo-dev] Re: gentoo-x86 commit in app-mobilephone/smstools: ChangeLog smstools-2.2.20.ebuild
Date: Fri, 31 Oct 2008 17:18:46 +0100 [thread overview]
Message-ID: <20081031170932.TA2bdf6.tv@veller.net> (raw)
In-Reply-To: <E1KvwFd-0005EP-27@stork.gentoo.org>
* "Tony Vroon (chainsaw)" <chainsaw@gentoo.org>:
> diff -u -r1.1 -r1.2
> --- smstools-2.2.20.ebuild 14 Jan 2008 16:13:37 -0000 1.1
> +++ smstools-2.2.20.ebuild 31 Oct 2008 15:49:29 -0000 1.2
>
> -pkg_setup() {
> - enewgroup sms
> - enewuser smsd -1 -1 /var/spool/sms sms
> -}
> -
> src_unpack() {
> unpack ${A}
> cd "${S}"
> @@ -35,7 +30,12 @@
>
> src_compile() {
> cd src
> - emake || die "emake failed"
> + emake CC="$(tc-getCC)" || die "emake failed"
> +}
> +
> +pkg_preinst() {
> + enewgroup sms
> + enewuser smsd -1 -1 /var/spool/sms sms
> }
>
> src_install() {
chown -R smsd:sms "${D}"/var/spool/sms
chmod g+s "${D}"/var/spool/sms/incoming
newinitd "${FILESDIR}"/smsd.initd smsd
insopts -o smsd -g sms -m0644
> @@ -60,5 +60,6 @@
> }
>
> pkg_postinst() {
> + touch /var/log/smsd.log
> chown -f smsd:sms /var/log/smsd.log
> }
Remember pkg_preinst is called after src_install.
So the user and group probably don't exist during src_install.
BTW: ROOT should be respected in pkg_postinst too.
next parent reply other threads:[~2008-10-31 16:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1KvwFd-0005EP-27@stork.gentoo.org>
2008-10-31 16:18 ` Torsten Veller [this message]
2008-10-31 16:24 ` [gentoo-dev] Re: gentoo-x86 commit in app-mobilephone/smstools: ChangeLog smstools-2.2.20.ebuild Tony "Chainsaw" Vroon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081031170932.TA2bdf6.tv@veller.net \
--to=ml-en@veller.net \
--cc=chainsaw@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox