From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Message-ID: <551D020A.6070209@pengutronix.de> Date: Thu, 02 Apr 2015 10:47:06 +0200 From: Marc Kleine-Budde MIME-Version: 1.0 References: <1427898458-3434-1-git-send-email-oliver.graute@neuhaus.de> In-Reply-To: <1427898458-3434-1-git-send-email-oliver.graute@neuhaus.de> Subject: Re: [ptxdist] [PATCHv4 1/1] linux-pam: this patch add Linux-PAM support to ptxdist Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1587727094==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Oliver Graute This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============1587727094== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="FQlk07OAXd9FDxlbwnmMKx0AEvBnIqiwk" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --FQlk07OAXd9FDxlbwnmMKx0AEvBnIqiwk Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 04/01/2015 04:27 PM, Oliver Graute wrote: > this patch add Linux-PAM support to ptxdist >=20 > Signed-off-by: Oliver Graute > --- > rules/linux-pam.in | 13 ++++++++++++ > rules/linux-pam.make | 57 ++++++++++++++++++++++++++++++++++++++++++= ++++++++ > 2 files changed, 70 insertions(+) > create mode 100644 rules/linux-pam.in > create mode 100644 rules/linux-pam.make >=20 > diff --git a/rules/linux-pam.in b/rules/linux-pam.in > new file mode 100644 > index 0000000..d76e4db > --- /dev/null > +++ b/rules/linux-pam.in > @@ -0,0 +1,13 @@ > +## SECTION=3Dnetworking > + > +config LINUX_PAM > + tristate > + prompt "linux-pam" I think a dependency to flex is missing, maybe it's only needed when compiling with selinux support...: libtool: link: arm-cortexa8-linux-gnueabihf-gcc -g -O2 -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -o pam_conv1 pam_conv_l.o pam_conv_y.o pam_conv_l.o: In function `yylex': platform-1234/build-target/Linux-PAM-1.1.8/conf/pam_conv1/pam_conv_l.c:87= 1: undefined reference to `yywrap' > + help > + Linux-PAM is a free implementation of the following DCE-RFC from > + Sunsoft. PAM provides a way to develop programs that are > + independent of authentication scheme. These programs need > + "authentication modules" to be attatched to them at run-time > + in order to work. Which authentication module is to be attatched > + is dependent upon the local system setup and is at the discretion > + of the local system administrator. > diff --git a/rules/linux-pam.make b/rules/linux-pam.make > new file mode 100644 > index 0000000..bdb150d > --- /dev/null > +++ b/rules/linux-pam.make > @@ -0,0 +1,57 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2015 Dr. Neuhaus Telekommunikation GmbH, Hamburg Germa= ny, Oliver Graute > +# > +# See CREDITS for details about who has contributed to this project. > +# > +# For further information about the PTXdist project and license condit= ions > +# see the README file. > +# > + > +# > +# We provide this package > +# > +PACKAGES-$(PTXCONF_LINUX_PAM) +=3D linux-pam > + > +# > +# Paths and names > +# > +LINUX_PAM_VERSION :=3D 1.1.8 > +LINUX_PAM_MD5 :=3D 35b6091af95981b1b2cd60d813b5e4ee > +LINUX_PAM :=3D Linux-PAM-$(LINUX_PAM_VERSION) > +LINUX_PAM_SUFFIX :=3D tar.bz2 > +LINUX_PAM_URL :=3D http://www.linux-pam.org/library/$(LINUX_PAM).$(LI= NUX_PAM_SUFFIX) > +LINUX_PAM_SOURCE :=3D $(SRCDIR)/$(LINUX_PAM).$(LINUX_PAM_SUFFIX) > +LINUX_PAM_DIR :=3D $(BUILDDIR)/$(LINUX_PAM) > +LINUX_PAM_LICENSE :=3D GPL, BSD > + > +# --------------------------------------------------------------------= -------- > +# Prepare > +# --------------------------------------------------------------------= -------- > + > +# > +# autoconf > +# > +LINUX_PAM_CONF_TOOL :=3D autoconf There a lot of options to pam's ./configure, please provide sensible defaults via CONF_OPT (at least for external packages) and make use of the gobal ptxdist option: --$(call ptx/wwo, PTXCONF_GLOBAL_SELINUX)-selinux $(GLOBAL_LARGE_FILE_OPTION) > + > +# --------------------------------------------------------------------= -------- > +# Target-Install > +# --------------------------------------------------------------------= -------- > + > +$(STATEDIR)/linux-pam.targetinstall: > + @$(call targetinfo) > + > + @$(call install_init, linux-pam) > + @$(call install_fixup, linux-pam,PRIORITY,optional) > + @$(call install_fixup, linux-pam,SECTION,base) > + @$(call install_fixup, linux-pam,AUTHOR,"")= > + @$(call install_fixup, linux-pam,DESCRIPTION,missing) > + > + @$(call install_lib, linux-pam, 0, 0, 0644, libpam) > + > + @$(call install_alternative, linux-pam, 0, 0, 0644, /etc/pam.conf) The install stage fails with: Error: file not found: platform-123/build-target/Linux-PAM-1.1.8/etc/pam.conf Please provide a default projectroot/etc/pam.conf via this patch. > + @$(call install_finish, linux-pam) > + > + @$(call touch) > + > +# vim: syntax=3Dmake >=20 Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | --FQlk07OAXd9FDxlbwnmMKx0AEvBnIqiwk Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJVHQIQAAoJECte4hHFiupUd/EQAKlRvOCAxUgaTFIB+/iLsvhM fivkj4cjgx478RvjNfht5xaxl9rC+dIK6EnqrSKpaee666vzGnSFsNF4jHuTvCbE KZ6sk6pNw++8ijyhx/XdA1hK6Sb6jrGC+v8V/kuSZ2hD9n2AI6Vy5k5qzk1vU131 e1khcKTT7aWQi/qo1MnRtmRzEXI3V+HwbQqjLS4CzbxlOI5BS3MU2vdkVpezq2Qs +NlsRJUOQvnnX5LMTLG8djHKMJLr9rrU7CREROP7WsICxF4KS3DMSE3mXwRYC6TY CVLdGpa786MWKmW22nl3Ku4Kpmwx6C6tCd32kKyZcc9N1qcI3mUtfL0nd4BRK8Dy ruZ6hI0SdcFRdwCsMj3Cxod3vLrWmgIMxe31vEjdynwmxYo2EHkeomeKJimbAq6s VO34KM9ckVRW2EX4CtKqSji4ljNLAg0alwa0EBiKDMgEur9NPOBKLL8BOdsWcQ3r Z2+5z2oEOAIebgz8+h0Zbou03rFHG6758uML3GI7wFoy3BqIXnWBBiWBrx6GkYtd rFOXxrt4kHi+8hDBWcZpgwIgxQBb3KG3xSLb6RtZooLw7dBZ6YeONmnySc43rjDZ /8QaYVgSsips+UIZCXh05UF6+LscH3aEkqRVIGXau04aBSc+NotI2AjO7f7JQeSm ijwzfZQcjpXilLvaVIpw =3PbI -----END PGP SIGNATURE----- --FQlk07OAXd9FDxlbwnmMKx0AEvBnIqiwk-- --===============1587727094== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============1587727094==--