写真集

Camera:Panasonic LUMIX DMC-LX3
Vine Linux と Ubuntu の設定方法など

Interix 6.1 pkgsrc makeに成功したパッケージリスト

2011-02-11 23:41:28 | Interix6.1
autoconf-2.68       Generates automatic source code configuration scripts
bash-4.1nb1         The GNU Bourne Again Shell
bison-2.4.3         GNU yacc(1) replacement
bmake-20100808      Portable (autoconf) version of NetBSD 'make' utility
bootstrap-mk-files-20090807nb2 *.mk files for the bootstrap bmake utility
bsdtar-2.8.4        Fast multi-format tape archiver
bzip2-1.0.6         Block-sorting file compressor
curl-7.21.3         Client that groks URLs
cvs-1.11.23         Concurrent Versions System
digest-20080510     Message digest wrapper utility
gettext-lib-0.14.6  Internationalized Message Handling Library (libintl)
gettext-tools-0.14.6nb1 Tools for providing messages in different languages
gmake-3.82nb1       GNU version of 'make' utility
gtar-base-1.25nb3   The GNU tape archiver with remote magnetic tape support
gtexinfo-4.13       GNU info documentation utilities
libiconv-1.13.1     Character set conversion library
libidn-1.19         Internationalized Domain Names command line tool
libtool-base-2.2.6bnb4 Generic shared library support script (the script itself)
m4-1.4.15           GNU version of UNIX m4 macro language processor
openssh-5.5.1       Open Source Secure shell client and server (remote login program)
openssl-0.9.8q      Secure Socket Layer and cryptographic library
osabi-Interix-6.1   Operating System version dummy-package
p5-Digest-1.16nb1   Perl5 base class for Digest:: modules
p5-Digest-SHA1-2.13nb1 Perl5 module for SHA1
p5-enum-1.016nb2    Enumerations for Perl
p5-Error-0.17016nb1 Perl extension module for try/throw/catch exception handling
p5-MIME-Base64-3.13 Perl5 module for Base64 and Quoted-Printable encodings
p5-pkgsrc-Dewey-1.1nb1 Perl module to compare pkgsrc Dewey numbers
pax-20080110        POSIX standard archiver with many extensions
perl-5.12.2nb1      Practical Extraction and Report Language
pkg-config-0.25nb1  System for managing library compile/link flags
pkglint-4.94        Verifier for NetBSD packages
pkg_install-20101212 Package management and administration tools for pkgsrc
readline-6.1        GNU library that can recall and edit previous input
tcp_wrappers-7.6.1nb4 Monitor and filter incoming requests for network services
tnftp-20070806      The enhanced FTP client in NetBSD
user-20040426       Limited NetBSD-compatible useradd/groupadd commands
x11-links-0.61      Shadow tree of links to native X11 headers and libraries
zlib-1.2.3          General purpose data compression library

Interix 6.1 pkgsrc scmcvs をビルドしてみました その2

2011-02-11 20:57:18 | Interix6.1

先に gtexinfo.4.13 (texinfo) をビルドします
下記の3つのファイルをダウンロードしてscmcvs (cvs-1.11.23)をビルドしました。


$ cd /usr/pkgsrc/devel/gtexinfo
$ bmake clean
$ bmake

gtexinfo.4.13 のビルドは成功しました。

$ cd /usr/pkgsrc/devel/scmcvs
$ bmake 2>&1 | tee cvs.make.txt

エラーが出てしまいました。
------------------------------------------------------------------------------
gcc -DHAVE_CONFIG_H -I. -I.. -I../lib -I../diff    -I/usr/pkg/include  -D_ALL_SOURCE -O -I/usr/pkg/include -MT add.o -MD -MP -MF .deps/add.Tpo -c -o add.o add.c
In file included from cvs.h:49,
                 from add.c:33:
../lib/xsize.h: In function `xsum':
../lib/xsize.h:61: error: `SIZE_MAX' undeclared (first use in this function)
../lib/xsize.h:61: error: (Each undeclared identifier is reported only once
../lib/xsize.h:61: error: for each function it appears in.)
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/devel/scmcvs/work/cvs-1.11.23/src
*** Error code
------------------------------------------------------------------------------

lib/xsize.h ファイルをobache さんのコメント通りに修正しました。
------------------------------------------------------------------------------
#include <limits.h>
#if HAVE_INTTYPES_H
# include <inttypes.h>
-#elif HAVE_STDINT_H
+#endif
+#if HAVE_STDINT_H
# include <stdint.h>
#endif
------------------------------------------------------------------------------
$ bmake clean
$ bmake
$ bmake install
===========================================================================
$NetBSD: MESSAGE,v 1.1 2007/05/27 09:49:50 schmonz Exp $

Set up the master source repository.  See the "Setting up the repository"
section of cvs.info for details; the one-line summary is (if you are
putting the repository in /src/master):

 $ cvs -d /src/master init

Have all users of the CVS system set the CVSROOT environment
variable appropriately to reflect the placement of your source
repository.  If the above example is used, the following commands
can be placed in user's ~/.profile, ~/.bash_profile file; or in the
system-wide /etc/profile:

 CVSROOT=/src/master; export CVSROOT

for sh/bash/ksh users, or place the following commands in the user's
~/.login, or system-wide in the /etc/csh.login file:

 setenv CVSROOT /src/master

for csh/tcsh users.  If these environment variables are not already set
in your current shell, set them now (or source the login script you
just edited).

===========================================================================

=> Registering installation for cvs-1.11.23
cvs-1.11.23 requires installed package zlib-1.2.3

無事にインストールできました。


Interix 6.1 pkgsrc で openssh をビルドしてみました その2

2011-02-11 20:34:04 | Interix6.1

pkgsrc の openssh が修正されたとのことで下記の4つのファイルを置換して再度ビルドしました。

$ bmake clean
$ bmake

エラーでした。
---------------------------------------------------------------
gcc -D_ALL_SOURCE -O -I/usr/pkg/include -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -fno-builtin-memset -I. -I. -I/usr/pkg/include -I/usr/pkg/include -DIOV_MAX=16 -I/usr/local/bind/include -I/usr/pkg/include -DSSHDIR=\"/usr/pkg/etc/ssh\"  -D_PATH_SSH_PROGRAM=\"/usr/pkg/bin/ssh\"  -D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/pkg/bin/ssh-askpass\"  -D_PATH_SFTP_SERVER=\"/usr/pkg/libexec/sftp-server\"  -D_PATH_SSH_KEY_SIGN=\"/usr/pkg/libexec/ssh-keysign\"  -D_PATH_SSH_PKCS11_HELPER=\"/usr/pkg/libexec/ssh-pkcs11-helper\"  -D_PATH_SSH_PIDDIR=\"/var/run\"  -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\"  -DSSH_RAND_HELPER=\"/usr/pkg/libexec/ssh-rand-helper\" -DHAVE_CONFIG_H -c loginrec.c
loginrec.c: In function `lastlog_openseek':
loginrec.c:1497: error: invalid application of `sizeof' to an incomplete type
loginrec.c: In function `lastlog_write_entry':
loginrec.c:1526: error: storage size of `last' isn't known
loginrec.c:1526: warning: unused variable `last'
loginrec.c: In function `lastlog_get_entry':
loginrec.c:1579: error: storage size of `last' isn't known
loginrec.c:1579: warning: unused variable `last'
---------------------------------------------------------------

obacheさんからのコメントでMakefileを修正しました。
CONFIGURE_ARGS+= --disable-lastlog
---------------------------------------------------------------
PKG_SYSCONFSUBDIR= ssh

GNU_CONFIGURE=  yes
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}
CONFIGURE_ARGS+= --disable-lastlog # 追加しました。

.if ${OPSYS} != "Interix"
CONFIGURE_ARGS+= --with-privsep-path=${OPENSSH_CHROOT:Q}
CONFIGURE_ARGS+= --with-privsep-user=${OPENSSH_USER:Q}
.endif
---------------------------------------------------------------

$ bmake clean
$ bmake
=> Creating /usr/pkgsrc/security/openssh/work/sshd
無事にビルドが成功しました。

$ bmake install
===========================================================================
The following directories are used by openssh-5.5.1 and
have the wrong ownership and/or permissions:

 /usr/pkg/etc/ssh (m=755, o=197609, g=131616)

===========================================================================
===========================================================================
The following files should be created for openssh-5.5.1:

 /etc/rc.d/sshd (m=0755)
     [/usr/pkg/share/examples/rc.d/sshd]

===========================================================================
=> Please note the following:

===========================================================================
$NetBSD: MESSAGE.Interix,v 1.1 2005/03/07 23:29:49 tv Exp $

OpenSSH on Interix has some important caveats:

* Hostname resolution uses the BIND resolver library rather than Windows
  native lookup services.  This requires that /etc/resolv.conf be set up
  properly with a "nameserver" line; see resolv.conf(5).  In most
  installations, this was generated automatically when Services for UNIX
  was installed (based on the name server in use at that time).

* Currently, UsePrivilegeSeparation does not work properly, so it defaults
  to "no" on Interix.

* Network drives and encrypted local files may not be accessible after
  logging in through sshd thanks to the way the Windows security API works.
  A workaround is to "exec su USERNAME" after logging in, which will use
  the password to create a proper Windows access credential key.

===========================================================================

=> Registering installation for openssh-5.5.1
openssh-5.5.1 requires installed package openssl-0.9.8q
openssh-5.5.1 requires installed package tcp_wrappers-7.6.1nb4
openssh-5.5.1 requires installed package zlib-1.2.3

無事にインストール終了しました。