pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkglint - Conf_Files



Hi,

From: "Maurizio Caloro" <mauric%gmx.ch@localhost>, Date: Mon, 29 Apr 2013 
16:19:34 +0200 (CEST)

> Hi!
> Try to build my own Software Package, after check my build with pkglint -e i
> have following
> error:
> 
> ERROR: PLIST:10: Configuration files must not be registered in the PLIST.
> Please use the CONF_FILES framework, which is described in mk/pkginstall/
> bsd.pkginstall.mk.
> ERROR: PLIST:11: Configuration files must not be registered in the PLIST.
> Please use the CONF_FILES framework, which is described in mk/pkginstall/
> bsd.pkginstall.mk.
> ERROR: PLIST:12: Configuration files must not be registered in the PLIST.
> Please use the CONF_FILES framework, which is described in mk/pkginstall/
> bsd.pkginstall.mk.
> 
> after read the bsd.pkginstall.mk try to add Conf_files in every possible
> constelation
> but at the moment without success. currently are perplexed. help !

Could you provide me your PLIST?
Probably lune 10 to 12 contains /etc/ or similar.

And pkgsrc/doc/pkgsrc.txt contains the explanation of CONF_FILES.

By the way, in this case, pkgsrc/security/openssh is good teacher, I feel.
(It is somewhat complex...)

> Regards
> Mauri
> 
> hp7900# cat Makefile
> # $NetBSD$
> 
> DISTNAME=       openssh-6.2p1
> PKGNAME=        openssh-6.2.1
> SVR4_PKGNAME=   ossh
> CATEGORIES=     security
> MASTER_SITES=   ftp://ftp.ch.openbsd.org/pub/OpenBSD/OpenSSH/portable/
> MAINTAINER=     pkgsrc-users%NetBSD.org@localhost
> HOMEPAGE=       ftp://ftp.ch.openbsd.org/pub/OpenBSD/OpenSSH/portable/
> COMMENT=        OpenSSH 6.1 - MCA
> CONF_FILES=     etc/moduli etc/ssh_config etc/sshd_config
> 
> USE_TOOLS+=             perl
> GNU_CONFIGURE=          yes
> CRYPTO=                 yes
> CONFIGURE_ARGS+=        --with-ssl-dir=/usr/pkg/lib
> CONFIGURE_ARGS+=        --with-mantype=man
> CONFIGURE_ARGS+=        --sysconfdir=${PKG_SYSCONFDIR:Q}
> CONFIGURE_ARGS+=        --with-pid-dir=${SSH_PID_DIR:Q}
> CONFIGURE_ARGS+=        --with-ssl-dir=${SSLBASE:Q}
> CONFIGURE_ARGS+=        --with-tcp-wrappers=${BUILDLINK_PREFIX.tcp_wrappers}
> 
> # retain the following line, for IPv6-ready pkgsrc webpage
> BUILD_DEFS+=            IPV6_READY
> 
> PKG_GROUPS_VARS+=       OPENSSH_GROUP
> PKG_USERS_VARS+=        OPENSSH_USER
> BUILD_DEFS+=            OPENSSH_CHROOT
> BUILD_DEFS+=            VARBASE
> 
> INSTALL_TARGET=         install-nokeys
> PLIST_SRC=              # empty
> 
> .include "../../devel/zlib/buildlink3.mk"
> .include "../../security/openssl/buildlink3.mk"
> .include "../../mk/bsd.pkg.mk"
> 

--
Ryo ONODERA // ryo_on%yk.rim.or.jp@localhost
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


Home | Main Index | Thread Index | Old Index