All of lore.kernel.org
 help / color / mirror / Atom feed
From: Khem Raj <raj.khem@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH 2/3] postfix: convert to BBCLASSEXTEND and new staging for native
Date: Wed, 31 Mar 2010 13:27:41 -0700	[thread overview]
Message-ID: <20100331202741.GB21433@gmail.com> (raw)
In-Reply-To: <1270061972-5564-2-git-send-email-khimov@altell.ru>

On (31/03/10 22:59), Roman I Khimov wrote:
> Signed-off-by: Roman I Khimov <khimov@altell.ru>
> ---
>  recipes/postfix/postfix-native_2.0.20.bb |   10 ----------
>  recipes/postfix/postfix-native_2.2.12.bb |   10 ----------
>  recipes/postfix/postfix.inc              |   25 ++++++++++++++++++++++---
>  3 files changed, 22 insertions(+), 23 deletions(-)
>  delete mode 100644 recipes/postfix/postfix-native_2.0.20.bb
>  delete mode 100644 recipes/postfix/postfix-native_2.2.12.bb
> 
> diff --git a/recipes/postfix/postfix-native_2.0.20.bb b/recipes/postfix/postfix-native_2.0.20.bb
> deleted file mode 100644
> index 66ff65d..0000000
> --- a/recipes/postfix/postfix-native_2.0.20.bb
> +++ /dev/null
> @@ -1,10 +0,0 @@
> -require postfix_${PV}.bb
> -
> -inherit native
> -FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/postfix-${PV}"
> -DEPENDS = "virtual/db-native libpcre-native"
> -export DIRS = "src/util src/global src/postconf"
> -
> -do_stage () {
> -	install -m 0755 src/postconf/postconf ${STAGING_BINDIR}/
> -}
> diff --git a/recipes/postfix/postfix-native_2.2.12.bb b/recipes/postfix/postfix-native_2.2.12.bb
> deleted file mode 100644
> index 66ff65d..0000000
> --- a/recipes/postfix/postfix-native_2.2.12.bb
> +++ /dev/null
> @@ -1,10 +0,0 @@
> -require postfix_${PV}.bb
> -
> -inherit native
> -FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/postfix-${PV}"
> -DEPENDS = "virtual/db-native libpcre-native"
> -export DIRS = "src/util src/global src/postconf"
> -
> -do_stage () {
> -	install -m 0755 src/postconf/postconf ${STAGING_BINDIR}/
> -}
> diff --git a/recipes/postfix/postfix.inc b/recipes/postfix/postfix.inc
> index 6a5f9bb..5b18cef 100644
> --- a/recipes/postfix/postfix.inc
> +++ b/recipes/postfix/postfix.inc
> @@ -1,5 +1,6 @@
>  SECTION = "console/network"
>  DEPENDS = "virtual/db libpcre postfix-native"
> +DEPENDS_virtclass-native = "virtual/db-native libpcre-native"

Is this really needed. I thought BBCLASSEXTEND should have converted it for
you and if you wanted to get rid of postfix-native dependency then why is
it that native wont need it and target recipe will.

>  LICENSE = "IPL"
>  
>  INC_PR = "r13"
> @@ -15,6 +16,8 @@ SRC_URI = "ftp://ftp.porcupine.org/mirrors/postfix-release/official/postfix-${PV
>  
>  S = "${WORKDIR}/postfix-${PV}"
>  
> +BBCLASSEXTEND = "native"
> +
>  inherit update-rc.d
>  
>  INITSCRIPT_NAME = "postfix"
> @@ -31,7 +34,7 @@ export SYSLIBS = "-lpcre -ldb ${LIBBDB_EXTRA} -lnsl -lresolv ${LDFLAGS}"
>  export EXPORT = "AUXLIBS='-lpcre' CCARGS='-DHAS_PCRE ${CFLAGS}' OPT='' DEBUG='-g'"
>  export CC_append = " -DHAS_PCRE ${CFLAGS}"
>  export EXTRA_OEMAKE = "-e"
> -export POSTCONF = "${STAGING_BINDIR_NATIVE}/postconf"
> +export POSTCONF = "${STAGING_SBINDIR_NATIVE}/postconf"
>  
>  do_compile () {
>  	unset CFLAGS CPPFLAGS CXXFLAGS
> @@ -39,8 +42,23 @@ do_compile () {
>  	oe_runmake
>  }
>  
> +do_install_prepend_virtclass-native() {
> +	export POSTCONF="bin/postconf"
> +}
> +
>  do_install () {
> -	sh ./postfix-install 'install_root=${D}' -non-interactive
> +	sh ./postfix-install 'install_root=${D}' \
> +		'config_directory=${sysconfdir}/postfix' \
> +		'daemon_directory=${libexecdir}/postfix' \
> +		'command_directory=${sbindir}' \
> +		'queue_directory=${localstatedir}/spool/postfix' \
> +		'sendmail_path=${sbindir}/sendmail.postfix' \
> +		'newaliases_path=${bindir}/newaliases' \
> +		'mailq_path=${bindir}/mailq' \
> +		'manpage_directory=${mandir}' \
> +		'readme_directory=${datadir}/doc/postfix' \
> +		'data_directory=${localstatedir}/lib/postfix' \
> +		-non-interactive
>  	rm -rf ${D}${localstatedir}/spool/postfix
>          mv ${D}${sysconfdir}/postfix/main.cf ${D}${sysconfdir}/postfix/sample-main.cf
>  	install -d ${D}${localstatedir}/tmp
> @@ -50,9 +68,10 @@ do_install () {
>          install -m 644 ${WORKDIR}/volatiles ${D}${sysconfdir}/default/volatiles/01_postfix
>          install -m 755 ${WORKDIR}/postfix ${D}${sysconfdir}/init.d/postfix
>          install -m 644 ${WORKDIR}/internal_recipient ${D}${sysconfdir}/postfix/internal_recipient
> -	mv ${D}${sbindir}/sendmail ${D}${sbindir}/sendmail.${PN}
>  }
>  
> +NATIVE_INSTALL_WORKS = "1"
> +
>  pkg_postinst () {
>  	update-alternatives --install ${sbindir}/sendmail sendmail sendmail.${PN} 40
>          grep postfix /etc/group || addgroup postfix
> -- 
> 1.6.4.2
> 
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel



  parent reply	other threads:[~2010-03-31 20:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-31 18:59 [PATCH 1/3] bitbake.conf: add STAGING_SBINDIR_NATIVE Roman I Khimov
2010-03-31 18:59 ` [PATCH 2/3] postfix: convert to BBCLASSEXTEND and new staging for native Roman I Khimov
2010-03-31 18:59   ` [PATCH 3/3] postfix: add 2.7.0 version Roman I Khimov
2010-03-31 20:28     ` Khem Raj
2010-03-31 20:27   ` Khem Raj [this message]
2010-04-01  1:05     ` [PATCH 2/3] postfix: convert to BBCLASSEXTEND and new staging for native Roman I Khimov
2010-03-31 20:24 ` [PATCH 1/3] bitbake.conf: add STAGING_SBINDIR_NATIVE Khem Raj

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=20100331202741.GB21433@gmail.com \
    --to=raj.khem@gmail.com \
    --cc=openembedded-devel@lists.openembedded.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.