Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
Bastille is a system hardening / lockdown program which enhances the
security of a Unix host. It configures daemons, system settings and
firewalls to be more secure. It can shut off unneeded services like rcp
and rlogin, and helps create "chroot jails" that help limit the
vulnerability of common Internet services like Web services and DNS.
This tool currently hardens Red Hat (Fedora Core, Enterprise and
Legacy/Classic), SuSE, Debian, Gentoo, Mandrake Linux, HP-UX, Mac OS X
and Turbo Linux.
If run in the preferred interactive mode, it can teach you a good deal
about security while personalizing your system security state.
Bastille can also assess and report on the state of a system, which may
serve as an aid to security administrators, auditors and system
administrators who wish to investigate the state of their system's
hardening without making changes to such. This assessment functionality
has only been tested on Red Hat Linux (Fedora, Legacy, Enterprise) and
SUSE systems.
+66
View File
@@ -0,0 +1,66 @@
# $NetBSD: Makefile,v 1.9 2013/05/31 12:41:50 wiz Exp $
#
DISTNAME= Bastille-3.0.9
PKGREVISION= 3
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=bastille-linux/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://bastille-linux.sourceforge.net/
COMMENT= System hardening tool focusing on educating the user
WRKSRC= ${WRKDIR}/Bastille
CONFIGURE_ENV+= GCONF_SCHEMA_FILE_DIR=${PREFIX:Q}/share/gconf/schemas/
MAKE_ENV+= GCONF_SCHEMA_FILE_DIR=${PREFIX:Q}/share/gconf/schemas/
USE_PKGLOCALEDIR= yes
USE_LANGUAGES= # none
USE_TOOLS+= bash:run perl:run
NO_BUILD= yes
CHECK_INTERPRETER_SKIP+=share/Bastille/bastille-tmpdir.csh
BUILD_DEPENDS+= checkperms>=1.4:../../sysutils/checkperms
DEPENDS+= p5-Tk-[0-9]*:../../x11/p5-Tk
SUBST_CLASSES+= b
SUBST_STAGE.b= pre-configure
SUBST_FILES.b= Install.sh
SUBST_SED.b= -e 's,umask 077,umask 022,'
SUBST_SED.b+= -e 's,\$$RPM_BUILD_ROOT/usr/,${DESTDIR}${PREFIX}/,g'
SUBST_SED.b+= -e 's,\$$RPM_BUILD_ROOT/var/,${DESTDIR}${VARBASE}/,g'
SUBST_CLASSES+= b2
SUBST_STAGE.b2= pre-configure
SUBST_FILES.b2= bin/bastille Bastille/API.pm
SUBST_SED.b2= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
SUBST_SED.b2+= -e 's,@PREFIX@,${PREFIX},g'
SUBST_SED.b2+= -e 's,@VARBASE@,${VARBASE},g'
SUBST_CLASSES+= b3
SUBST_STAGE.b3= pre-configure
SUBST_FILES.b3= ${REPLACE_PERL}
SUBST_SED.b3= -e 's,^use lib.*,use lib "${PREFIX}/lib";,'
REPLACE_PERL+= AutomatedBastille BastilleBackEnd BastilleChooser
REPLACE_PERL+= InteractiveBastille RevertBastille *.pm
REPLACE_BASH+= bin/bastille
BUILD_DEFS+= VARBASE
OSMAP_FILES= NetBSD.system.in NetBSD.bastille.in
OSMAP_SUBSTVARS= PKG_SYSCONFDIR PREFIX VARBASE
post-extract:
cd ${WRKSRC} && find . -print | checkperms -ffc
cd ${FILESDIR} && cp ${OSMAP_FILES} ${WRKSRC}/OSMap/.
post-configure:
set -e; cd ${WRKSRC}/OSMap; for i in ${OSMAP_FILES:.in=}; do sed ${OSMAP_SUBSTVARS:@v@-e 's,\@${v}\@,${${v}},g' @} < "$$i.in" > "$$i"; done
do-install:
cd ${WRKSRC} && sh ./Install.sh
.include "../../devel/GConf/schemas.mk"
.include "../../mk/bsd.pkg.mk"
+100
View File
@@ -0,0 +1,100 @@
@comment $NetBSD: PLIST,v 1.2 2009/06/14 18:13:25 joerg Exp $
lib/Bastille/API.pm
lib/Bastille/AccountSecurity.pm
lib/Bastille/Apache.pm
lib/Bastille/BootSecurity.pm
lib/Bastille/ConfigureMiscPAM.pm
lib/Bastille/DNS.pm
lib/Bastille/DisableUserTools.pm
lib/Bastille/FTP.pm
lib/Bastille/FilePermissions.pm
lib/Bastille/Firewall.pm
lib/Bastille/HP_API.pm
lib/Bastille/HP_UX.pm
lib/Bastille/IOLoader.pm
lib/Bastille/IPFilter.pm
lib/Bastille/LogAPI.pm
lib/Bastille/Logging.pm
lib/Bastille/MiscellaneousDaemons.pm
lib/Bastille/OSX_API.pm
lib/Bastille/PSAD.pm
lib/Bastille/PatchDownload.pm
lib/Bastille/Patches.pm
lib/Bastille/Printing.pm
lib/Bastille/RemoteAccess.pm
lib/Bastille/SecureInetd.pm
lib/Bastille/Sendmail.pm
lib/Bastille/TMPDIR.pm
lib/Bastille/TestAPI.pm
lib/Bastille/test_AccountSecurity.pm
lib/Bastille/test_Apache.pm
lib/Bastille/test_BootSecurity.pm
lib/Bastille/test_DNS.pm
lib/Bastille/test_DisableUserTools.pm
lib/Bastille/test_FTP.pm
lib/Bastille/test_FilePermissions.pm
lib/Bastille/test_HP_UX.pm
lib/Bastille/test_Logging.pm
lib/Bastille/test_MiscellaneousDaemons.pm
lib/Bastille/test_Printing.pm
lib/Bastille/test_SecureInetd.pm
lib/Bastille/test_Sendmail.pm
lib/perl5/site_perl/Bastille_Curses.pm
lib/perl5/site_perl/Bastille_Tk.pm
lib/perl5/site_perl/Curses/Widgets.pm
sbin/AutomatedBastille
sbin/BastilleBackEnd
sbin/InteractiveBastille
sbin/RevertBastille
sbin/UndoBastille
sbin/bastille
share/Bastille/Credits
share/Bastille/FKL/configs/fkl_config_redhat.cfg
share/Bastille/Modules.txt
share/Bastille/OSMap/HP-UX.bastille
share/Bastille/OSMap/HP-UX.service
share/Bastille/OSMap/HP-UX.system
share/Bastille/OSMap/LINUX.bastille
share/Bastille/OSMap/LINUX.system
share/Bastille/OSMap/NetBSD.bastille
share/Bastille/OSMap/NetBSD.system
share/Bastille/OSMap/OSX.bastille
share/Bastille/OSMap/OSX.system
share/Bastille/Questions/AccountSecurity.txt
share/Bastille/Questions/Apache.txt
share/Bastille/Questions/BootSecurity.txt
share/Bastille/Questions/ConfigureMiscPAM.txt
share/Bastille/Questions/DNS.txt
share/Bastille/Questions/DisableUserTools.txt
share/Bastille/Questions/FTP.txt
share/Bastille/Questions/FilePermissions.txt
share/Bastille/Questions/Firewall.txt
share/Bastille/Questions/HP_UX.txt
share/Bastille/Questions/IPFilter.txt
share/Bastille/Questions/Logging.txt
share/Bastille/Questions/MiscellaneousDaemons.txt
share/Bastille/Questions/PSAD.txt
share/Bastille/Questions/Patches.txt
share/Bastille/Questions/Printing.txt
share/Bastille/Questions/SecureInetd.txt
share/Bastille/Questions/Sendmail.txt
share/Bastille/Questions/TMPDIR.txt
share/Bastille/Weights.txt
share/Bastille/bastille-firewall
share/Bastille/bastille-firewall-early.sh
share/Bastille/bastille-firewall-pre-audit.sh
share/Bastille/bastille-firewall-reset
share/Bastille/bastille-firewall-schedule
share/Bastille/bastille-firewall.cfg
share/Bastille/bastille-ipchains
share/Bastille/bastille-netfilter
share/Bastille/bastille-tmpdir-defense.sh
share/Bastille/bastille-tmpdir.csh
share/Bastille/bastille-tmpdir.sh
share/Bastille/bastille.jpg
share/Bastille/complete.xbm
share/Bastille/hosts.allow
share/Bastille/ifup-local
share/Bastille/incomplete.xbm
share/Bastille/wz_tooltip.js
@exec ${MKDIR} %D/var/lock/subsys/bastille
+8
View File
@@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.1.1.1 2007/06/06 22:37:59 rillig Exp $
SHA1 (Bastille-3.0.9.tar.bz2) = 389f13d9c6c7b14b91b30bda7285238c74758e0d
RMD160 (Bastille-3.0.9.tar.bz2) = 853bec2e007d3084cb4df9d509a316523c4dc467
Size (Bastille-3.0.9.tar.bz2) = 319045 bytes
SHA1 (patch-aa) = 4f7ab0f1e90b102ec612dfabffb46a91a2368752
SHA1 (patch-ab) = cd3c4d995b3e5a05c33304ff11f52fa3c34ff463
SHA1 (patch-ac) = f7fd8063e390e69de83b85366ecb657d97b80434
@@ -0,0 +1,34 @@
bdir,QuestionsDir,'@PREFIX@/share/Bastille/Questions'
bdir,backup,'@VARBASE@/log/Bastillerevert/backup'
bdir,config,'@PKG_SYSCONFDIR@/Bastille'
bdir,home,'/root/Bastille'
bdir,log,'@VARBASE@/log/Bastille'
bdir,oldconfig,'@VARBASE@/log/Bastilleoldconfig'
bdir,revert,'@VARBASE@/log/Bastillerevert'
bdir,share,'@PREFIX@/share/Bastille'
bfile,BastilleBackEnd,'@PREFIX@/sbin/BastilleBackEnd'
bfile,Questions,'@PREFIX@/share/Bastille/Questions.txt'
bfile,QuestionsWeights,'@PREFIX@/share/Bastille/Weights.txt'
bfile,QuestionsModules,'@PREFIX@/share/Bastille/Modules.txt'
bfile,TODO,'@VARBASE@/log/Bastille/TODO'
bfile,TOREVERT,'@VARBASE@/log/Bastillerevert/TOREVERT.txt'
bfile,action-log,'@VARBASE@/log/Bastille/action-log'
bfile,complete.xbm,'@PREFIX@/share/Bastille/complete.xbm'
bfile,config,'@PKG_SYSCONFDIR@/Bastille/config'
bfile,created-dirs,'@VARBASE@/log/Bastillerevert/revert-created-dirs'
bfile,created-files,'@VARBASE@/log/Bastillerevert/revert-created-files'
bfile,created-symlinks,'@VARBASE@/log/Bastillerevert/revert-created-symlinks'
bfile,credits,'@PREFIX@/share/Bastille/Credits'
bfile,debug-log,'@VARBASE@/log/Bastille/debug-log'
bfile,error-log,'@VARBASE@/log/Bastille/error-log'
bfile,executed-commands,'@VARBASE@/log/Bastillerevert/revert-executed-commands'
bfile,incomplete.xbm,'@PREFIX@/share/Bastille/incomplete.xbm'
bfile,last.config,'@VARBASE@/log/Bastille/last.config'
bfile,lockfile,'@VARBASE@/lock/subsys/bastille-lock'
bfile,nodisclaimer,'@PREFIX@/share/Bastille/.nodisclaimer'
bfile,removed-symlinks,'@VARBASE@/log/Bastillerevert/revert-removed-symlinks'
bfile,revert-actions,'@VARBASE@/log/Bastillerevert/revert-actions'
bfile,revert-directory-perms.sh,'@VARBASE@/log/Bastillerevert/revert-directory-perms.sh'
bfile,sum.csv,'@VARBASE@/log/Bastillerevert/sum.csv'
+256
View File
@@ -0,0 +1,256 @@
bin,XFree86,'/usr/X11R6/bin/XFree86'
bin,Xwrapper,'/usr/X11R6/bin/Xwrapper'
bin,accton,'/usr/sbin/accton'
bin,accton,'/sbin/accton',RH6.2,MN9.2,MN10.0,MN10.1,MN2006.0
bin,dpkg,'/usr/bin/dpkg',DB
bin,apt-get,'/usr/sbin/apt-get',DB
bin,at,'/usr/bin/at'
bin,bash,'/bin/bash'
bin,cardctl,'/sbin/cardctl'
bin,chattr,'/usr/bin/chattr'
bin,chgrp,'/bin/chgrp'
bin,chkconfig,'/sbin/chkconfig'
bin,chmod,'/bin/chmod'
bin,chown,'/bin/chown'
bin,cksum,'/usr/bin/cksum'
bin,cp,'/bin/cp'
bin,crontab,'/usr/bin/crontab'
bin,cupsd,'/usr/sbin/cupsd'
bin,diff,'/usr/bin/diff'
bin,dos,'/usr/bin/dos'
bin,dump,'/sbin/dump'
bin,echo,'/bin/echo'
bin,grep,'/bin/grep'
bin,grep,'/usr/bin/grep',SE
bin,groupadd,'/usr/sbin/groupadd'
bin,inndstart,'/usr/bin/inndstart'
bin,killall,'/usr/bin/killall'
bin,lilo,'/sbin/lilo'
bin,ln,'/bin/ln'
bin,logger,'/usr/bin/logger'
bin,lpd,'/usr/sbin/lpd'
bin,lpd,'/usr/lib/cups/daemon/cups-lpd',MN9.2,MN10.0,MN10.1,MN2006.0
bin,lppasswd,'/usr/bin/lppasswd'
bin,lpq,'/usr/bin/lpq'
bin,lpr,'/usr/bin/lpr'
bin,lprm,'/usr/bin/lprm'
bin,lpstat,'/usr/bin/lpstat'
bin,md5sum,'/usr/bin/md5sum'
bin,mknod,'/bin/mknod'
bin,more,'/usr/bin/more'
bin,mount,'/bin/mount'
bin,mv,'/bin/mv'
bin,named-xfer,'/usr/sbin/named-xfer'
bin,ping,'/bin/ping'
bin,ping6,'/usr/sbin/ping6',RH7.0,RH7.1,RH7.2,RH7.3,RH8.0,RH9,RHEL2
bin,ping6,'/bin/ping6',DB,RHEL3,RHFC1,RHFC2,RHFC3,RHFC4,RHFC5,SE9.1,SE9.2,SE9.3,SE10.0,SESLES9
bin,ping6,'/usr/bin/ping6',MN9.2,MN10.0,MN10.1,MN2006.0
bin,ps,'/bin/ps'
bin,rcp,'/usr/bin/rcp'
bin,rdist,'/usr/bin/rdist'
bin,restore,'/sbin/restore'
bin,rexec,'/usr/bin/rexec'
bin,rexecd,'/usr/sbin/in.rexecd'
bin,rlogin,'/usr/bin/rlogin'
bin,rlogind,'/usr/sbin/in.rlogind'
bin,rm,'/bin/rm'
bin,rmdir,'/bin/rmdir'
bin,rpm,'/bin/rpm'
bin,rsh,'/usr/bin/rsh'
bin,rcp,'/usr/bin/rcp'
bin,rshd,'/usr/sbin/in.rshd'
bin,sendmail,'/usr/sbin/sendmail'
bin,smbmnt,'/usr/bin/smbmnt'
bin,startinnfeed,'/usr/bin/startinnfeed'
bin,sulogin,'/sbin/sulogin'
bin,touch,'/usr/bin/touch'
bin,traceroute,'/usr/sbin/traceroute'
bin,traceroute6,'/bin/traceroute6'
bin,traceroute6,'/usr/sbin/traceroute6',RH7.0,RH7.1,RH7.2,RH7.3,RH8.0,RH9,RHEL2,MN9.2,MN10.0,MN10.1,MN2006.0
bin,traceroute6,'/usr/bin/traceroute6',DB
bin,umount,'/bin/umount'
bin,useradd,'/usr/sbin/useradd'
bin,usernetctl,'/usr/sbin/usernetctl'
dir,floppy,'/mnt/floppy'
dir,floppy,'/floppy',DB
dir,home,'/home'
dir,initd,'/etc/rc.d/init.d'
dir,initd,'/etc/init.d',DB,SE,SLES
dir,log,'/var/log'
dir,pamd,'/etc/pam.d'
dir,rcd,'/etc/rc.d'
dir,rcd,'/etc',DB
dir,sbin,'/sbin'
dir,xinetd.d,'/etc/xinetd.d'
file,accton,'/usr/sbin/accton'
file,accton,'/sbin/accton',RH6.2
file,banners_makefile,'/usr/share/doc/tcp_wrappers-7.5/Banners.Makefile'
file,banners_makefile,'/usr/share/doc/tcp_wrappers-7.6/Banners.Makefile',RH7.2,RHEL2,RHEL3
file,banners_makefile,'/usr/share/doc/packages/tcp_wrappers-7.6/Banners.Makefile',TB7.0
file,chkconfig_apmd,'/etc/rc.d/rc3.d/S26apmd'
file,chkconfig_apmd,'/etc/rc3.d/S26apmd',DB
file,chkconfig_apmd,'/etc/rc.config',SE
file,initd_apmd,'/etc/init.d/apmd'
file,initd_acpid,'/etc/init.d/acpid'
file,chkconfig_audit,'/etc/rc3.d/S20audit'
file,initd_audit,'/etc/init.d/audit'
file,chkconfig_dhcpd,'/etc/rc.d/rc3.d/S65dhcpd'
file,chkconfig_dhcpd,'/etc/rc3.d/S65dhcpd',DB
file,chkconfig_dhcpd,'/etc/rc.config',SE
file,initd_dhcpd,'/etc/init.d/dhcpd'
file,chkconfig_gated,'/etc/rc.d/rc3.d/S32gated'
file,chkconfig_gated,'/etc/rc3.d/S32gated',DB
file,initd_gated,'/etc/init.d/gated'
file,chkconfig_gpm,'/etc/rc.d/rc3.d/S85gpm'
file,chkconfig_gpm,'/etc/rc3.d/S20gpm',DB
file,chkconfig_gpm,'/etc/rc.config',SE
file,initd_gpm,'/etc/init.d/gpm'
file,chkconfig_httpd,'/etc/rc.d/rc3.d/S85httpd'
file,chkconfig_httpd,'/etc/rc3.d/S91httpd',DB
file,initd_httpd,'/etc/init.d/httpd'
file,initd_httpd2,'/etc/init.d/httpd2'
file,chkconfig_innd,'/etc/rc.d/rc3.d/S95innd'
file,chkconfig_innd,'/etc/rc3.d/S95innd',DB
file,initd_innd,'/etc/init.d/innd'
file,chkconfig_kudzu,'/etc/init.d/kudzu'
file,initd_kudzu,'/etc/init.d/kudzu'
file,chkconfig_named,'/etc/rc.d/rc3.d/S55named'
file,chkconfig_named,'/etc/rc3.d/S15named',DB
file,initd_named,'/etc/init.d/named'
file,chkconfig_nfs,'/etc/rc.d/rc3.d/S60nfs'
file,chkconfig_nfs,'/etc/rc3.d/S60nfs',DB
file,chkconfig_nfs,'/etc/rc.config',SE
file,initd_nfs,'/etc/init.d/nfs'
file,chkconfig_pcmcia,'/etc/rc.d/rc3.d/S45pcmcia'
file,chkconfig_pcmcia,'/etc/rc3.d/S45pcmcia',DB
file,chkconfig_pcmcia,'/etc/rc.config',SE
file,initd_pcmcia,'/etc/init.d/pcmcia'
file,initd_mDNSResponder,'/etc/init.d/mDNSResponder'
file,initd_avahi-daemon,'/etc/init.d/avahi-daemon'
file,initd_avahi-dnsconfd,'/etc/init.d/avahi-dnsconfd'
file,initd_bluetooth,'/etc/init.d/bluetooth'
file,initd_hpoj,'/etc/init.d/hpoj'
file,initd_isdn,'/etc/init.d/isdn'
file,chkconfig_routed,'/etc/rc.d/rc3.d/S55gated'
file,chkconfig_routed,'/etc/rc3.d/S55gated',DB
file,initd_routed,'/etc/init.d/routed'
file,chkconfig_snmpd,'/etc/rc.d/rc3.d/S50snmpd'
file,chkconfig_snmpd,'/etc/rc3.d/S50snmpd',DB
file,initd_snmpd,'/etc/init.d/snmpd'
file,chkconfig_vsftpd,'/etc/rc.d/rc3.d/S60vsftpd'
file,initd_vsftpd,'/etc/init.d/vsftpd'
file,chkconfig_ypbind,'/etc/rc.d/rc3.d/S17ypbind'
file,chkconfig_ypbind,'/etc/rc3.d/S17ypbind',DB
file,chkconfig_ypbind,'/etc/rc.config',SE
file,initd_ypbind,'/etc/init.d/ypbind'
file,cron.allow,'/etc/cron.allow'
file,cron.allow,'/var/spool/cron/allow',SE
file,csh.login,'/etc/csh.login'
file,cupsd,'/usr/sbin/cupsd'
file,ftpaccess,'/etc/ftpaccess'
file,gcc,'/usr/bin/gcc'
file,g++,'/usr/bin/g++'
file,gdm.conf,/etc/X11/gdm/gdm.conf
file,group,'/etc/group'
file,passwd,'/etc/passwd'
file,shadow,'/etc/shadow'
file,grub.conf,'/etc/grub.conf'
file,grub.conf,'/boot/grub/grub.conf',RH9,RHEL,RHFC
file,grub.conf,'/boot/grub/menu.lst',SE,MN
file,hosts.allow,'/etc/hosts.allow'
file,hosts.deny,'/etc/hosts.deny'
file,httpd,'/usr/sbin/httpd'
file,httpd,'/usr/sbin/apache',DB
file,httpd2,'/usr/sbin/httpd2'
file,httpd.conf,'/etc/httpd/conf/httpd.conf'
file,httpd.conf,'/etc/apache/httpd.conf',DB
file,httpd.conf,'/etc/httpd/httpd.conf',SE7.2 SE7.3 SE8.0
file,httpd.conf,'/etc/apache2/httpd.conf',SE9.0,SE9.1,SE9.2,SE9.3,SLES
file,httpd.conf,'/etc/httpd/conf/httpd2.conf',MN10.1
# SuSE breaks httpd.conf into many files after 8.
file,listen.conf,'/etc/apache2/listen.conf',SE9.0,SE9.1,SE9.2,SE9.3,SLES
file,suse-default-server.conf,'/etc/apache2/default-server.conf',SE9.0,SE9.1,SE9.2,SE9.3,SLES
file,httpd_access.conf,'/etc/httpd/conf/httpd.conf'
file,httpd_access.conf,'/etc/apache/access.conf',DB2
file,httpd_access.conf,'/etc/apache/httpd.conf',DB3
file,httpd_access.conf,'/etc/httpd/conf/access.conf',RH6.0,RH6.1
file,httpd_access.conf,'/etc/httpd/httpd.conf',SE7.2 SE7.3 SE8.0
file,httpd_access.conf,'/etc/apache2/httpd.conf',SE9.0,SE9.1,SE9.2,SE9.3,SLES
file,httpd_access.conf,'/etc/httpd/conf/commonhttpd.conf',MN10.1
file,inetd.conf,'/etc/inetd.conf'
file,inittab,'/etc/inittab'
file,issue,'/etc/issue'
file,kdmrc,'/usr/share/config/kdmrc'
file,kdmrc,'/etc/kde/kdm/kdmrc',MN10.1
file,lilo.conf,'/etc/lilo.conf'
file,limits.conf,'/etc/security/limits.conf'
file,lpd,'/usr/sbin/lpd'
file,lpr,'/usr/bin/lpr'
file,motd,'/etc/motd'
file,mtab,'/etc/mtab'
file,named,'/usr/sbin/named'
file,pam_access.conf,'/etc/security/access.conf'
file,pamd_passwd,'/etc/pam.d/passwd'
file,profile,'/etc/profile'
file,rc.config,'/etc/rc.config'
file,rc.local,'/etc/rc.local'
file,rootprofile,'/root/.bash_profile'
file,rsh,'/usr/bin/rsh'
file,rcp,'/usr/bin/rcp'
file,securetty,'/etc/securetty'
file,sendmail.cf,'/etc/sendmail.cf'
file,sysctl.conf,'/etc/sysctl.conf'
file,syslog.conf,'/etc/syslog.conf'
file,sysconfig_audit,'/etc/sysconfig/audit'
file,sysconfig_named,'/etc/sysconfig/named'
file,sysconfig_sendmail,'/etc/sysconfig/sendmail'
file,tcpd,'/usr/sbin/tcpd'
file,xinetd.conf,'/etc/xinetd.conf'
file,ypserv,'/etc/rc.d/init.d/ypserv'
file,ypserv,'/etc/init.d/ypserv',DB
file,ypserv,'/etc/rc.config',SE
file,zprofile,'/etc/zprofile'
+30
View File
@@ -0,0 +1,30 @@
$NetBSD: patch-aa,v 1.1.1.1 2007/06/06 22:37:59 rillig Exp $
--- bin/bastille.orig 2005-04-19 23:12:09.000000000 +0200
+++ bin/bastille 2006-12-03 09:00:32.000000000 +0100
@@ -66,21 +66,10 @@ EOF
}
systemFileLocations() {
-
- OS=`uname -s`
- if [ ${OS}x = "HP-UXx" ]; then # find right comparison directories for config files
- config_repository="/etc/opt/sec_mgmt/bastille"
- last_config="/var/opt/sec_mgmt/bastille/last.config"
- scripts_location="/opt/sec_mgmt/bastille/bin"
- else #Linux locations
- config_repository="/etc/Bastille"
- last_config="/var/log/Bastille/last.config"
- scripts_location="/usr/sbin"
- data_location="/usr/share/Bastille"
- fi
-
-
-
+ config_repository="@PKG_SYSCONFDIR@/etc"
+ last_config="@VARBASE@/log/Bastille/last.config"
+ scripts_location="@PREFIX@/sbin"
+ data_location="@PREFIX@/share/Bastille"
}
+32
View File
@@ -0,0 +1,32 @@
$NetBSD: patch-ab,v 1.1.1.1 2007/06/06 22:37:59 rillig Exp $
--- Bastille/API.pm.orig 2006-04-03 15:16:05.000000000 +0200
+++ Bastille/API.pm 2006-12-03 12:08:08.000000000 +0100
@@ -490,6 +490,8 @@ sub GetDistro() {
}
elsif ( $release =~ /(^HP-UX)\s*B\.(\d+\.\d+)/ ) {
$distro="$1$2";
+ } elsif ( $release =~ /^(\w+)\s+(\d+)/) {
+ $distro="$1$2";
}
else {
print STDERR "$err Could not determine operating system version!\n";
@@ -576,6 +578,10 @@ sub getSupportedOSHash () {
"HP-UX11.31"
],
+ "NetBSD" => [
+ "NetBSD1", "NetBSD2", "NetBSD3", "NetBSD4",
+ ],
+
"OSX" => [
'OSX10.2','OSX10.3','OSX10.4'
]
@@ -768,6 +774,7 @@ sub getFileAndServiceInfo($$) {
my %oSInfoPath = (
"LINUX" => "/usr/share/Bastille/OSMap/",
"HP-UX" => "/etc/opt/sec_mgmt/bastille/OSMap/",
+ "NetBSD" => "@PREFIX@/share/Bastille/OSMap/",
"OSX" => "/usr/share/Bastille/OSMap/"
);
+13
View File
@@ -0,0 +1,13 @@
$NetBSD: patch-ac,v 1.1.1.1 2007/06/06 22:37:59 rillig Exp $
--- Install.sh.orig 2005-04-18 23:26:39.000000000 +0200
+++ Install.sh 2006-12-03 12:09:56.000000000 +0100
@@ -99,6 +99,8 @@ cp OSMap/LINUX.system $RPM_BUILD_ROOT/us
cp OSMap/HP-UX.bastille $RPM_BUILD_ROOT/usr/share/Bastille/OSMap
cp OSMap/HP-UX.system $RPM_BUILD_ROOT/usr/share/Bastille/OSMap
cp OSMap/HP-UX.service $RPM_BUILD_ROOT/usr/share/Bastille/OSMap
+cp OSMap/NetBSD.bastille $RPM_BUILD_ROOT/usr/share/Bastille/OSMap
+cp OSMap/NetBSD.system $RPM_BUILD_ROOT/usr/share/Bastille/OSMap
cp OSMap/OSX.bastille $RPM_BUILD_ROOT/usr/share/Bastille/OSMap
cp OSMap/OSX.system $RPM_BUILD_ROOT/usr/share/Bastille/OSMap
+6
View File
@@ -0,0 +1,6 @@
Certificate Service Provider is a perl wrapper around openssl that allows you
to run multiple simple certificate authorities (CAs). CSP is designed to be
simple (almost to a fault) and is ideally suited to small PKIs (< 1000
entities) where security is paramount. CSP is meant to be run on isolated,
offline computers while still allowing CRLs and certificate repositories to be
easily published.
+45
View File
@@ -0,0 +1,45 @@
# $NetBSD: Makefile,v 1.16 2013/05/31 12:41:50 wiz Exp $
#
DISTNAME= CSP-0.32
PKGREVISION= 8
CATEGORIES= security
MASTER_SITES= ftp://ftp.su.se/pub/users/leifj/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${CSPGUIDE}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://devel.it.su.se/pub/jsp/polopoly.jsp?d=1026&a=3290
COMMENT= Simple PKI Toolkit
DEPENDS+= p5-Date-Calc>=5.4:../../devel/p5-Date-Calc
DEPENDS+= p5-IPC-Run>=0.79:../../devel/p5-IPC-Run
DEPENDS+= p5-Term-Prompt>=1.03:../../devel/p5-Term-Prompt
USE_TOOLS+= pax
CSPGUIDE= cspguide.pdf
SITES.${CSPGUIDE}= http://devel.it.su.se/content/1/c4/32/90/
EXTRACT_ONLY= ${DISTFILES:N*.pdf}
PERL5_PACKLIST= auto/CSP/.packlist
CSPHOME= ${VARBASE}/csp
OPENSSLBIN= ${BUILDLINK_PREFIX.openssl}/bin/openssl
OWN_DIRS= ${CSPHOME}
INSTALLATION_DIRS= share/doc/csp ${CSPHOME}
BUILD_DEFS+= CSPHOME
SUBST_CLASSES+= csp
SUBST_FILES.csp= csp
SUBST_SED.csp= -e s,@@CSPHOME@@,${CSPHOME},
SUBST_SED.csp+= -e s,@@OPENSSL@@,${OPENSSLBIN},
SUBST_STAGE.csp= post-patch
post-install:
cd ${WRKSRC}/ca && ${FIND} . -type f | pax -rw ${DESTDIR}${CSPHOME}
${INSTALL_DATA} ${DISTDIR}/${CSPGUIDE} ${DESTDIR}${PREFIX}/share/doc/csp
.include "../../lang/perl5/module.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+2
View File
@@ -0,0 +1,2 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2005/12/27 20:56:17 cube Exp $
share/doc/csp/cspguide.pdf
+9
View File
@@ -0,0 +1,9 @@
$NetBSD: distinfo,v 1.1.1.1 2005/12/27 20:56:17 cube Exp $
SHA1 (CSP-0.32.tar.gz) = 4be5535e9a39286bdd967c9d3b5538437d1ca349
RMD160 (CSP-0.32.tar.gz) = a344e8e94c08109ebc5d98a1a43e511e8ac8c887
Size (CSP-0.32.tar.gz) = 18241 bytes
SHA1 (cspguide.pdf) = f527519553d7c64f625210a74435c413cd470838
RMD160 (cspguide.pdf) = d4727fb6e4e44ad8c45d0749374843b38a340af9
Size (cspguide.pdf) = 152084 bytes
SHA1 (patch-aa) = ddfd76ff4c66629828a8126355e38a4bfedd2178
+24
View File
@@ -0,0 +1,24 @@
$NetBSD: patch-aa,v 1.1.1.1 2005/12/27 20:56:17 cube Exp $
--- csp.orig 2005-06-02 18:40:20.000000000 +0200
+++ csp
@@ -167,14 +167,16 @@ die $usage{_nocmd_} unless @ARGV > 0;
my $name = shift @ARGV;
+my $home = $ENV{CSPHOME} || '@@CSPHOME@@';
+
warn "Warning: \$CSPHOME unset. This may prevent CSP from working properly.\n"
- unless $ENV{CSPHOME};
+ unless -d $home;
+
+$ENV{OPENSSL} = '@@OPENSSL@@' unless defined($ENV{OPENSSL});
die "Panic: \$OPENSSL does not point to a executable.\n"
unless -x $ENV{OPENSSL};
-my $home = $ENV{CSPHOME} || 'ca';
-
mkdir "$home/csp",00755 unless -d "$home/csp";
$name eq '--list' and
+4
View File
@@ -0,0 +1,4 @@
Provides driver support for the CoolKey and Common Access Card (CAC)
smart card used in a Public Key Infrastructure (PKI). The libpkcs11
module allows use of Smart Cards in applications that use mozilla
Network Security Services (NSS).
+48
View File
@@ -0,0 +1,48 @@
# $NetBSD: Makefile,v 1.6 2013/02/01 22:21:09 wiz Exp $
#
DISTNAME= coolkey-1.1.0
PKGREVISION= 1
CATEGORIES= security
MASTER_SITES= http://directory.fedora.redhat.com/download/coolkey/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://directory.fedora.redhat.com/wiki/CoolKey
COMMENT= Driver support for the CoolKey and CAC products
LICENSE= gnu-lgpl-v2
# Only for NetBSD>=4.99.0
NOT_FOR_PLATFORM= NetBSD-[0-3].*-* NetBSD-4.[0-9].*-*
NOT_FOR_PLATFORM+= NetBSD-4.[0-8]*.*-* NetBSD-4.9[0-8].*-*
.include "../../mk/bsd.prefs.mk"
BUILD_DEFS= VARBASE
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config
USE_TOOLS+= autoconf
USE_TOOLS+= gmake
USE_TOOLS+= grep
.if ${OPSYS} != "NetBSD"
USE_TOOLS+= gsed
.endif
USE_LANGUAGES= c c++
AUTOCONF_REQD= 2.59
CONFIGURE_ARGS+= --sharedstatedir=${VARBASE:Q}
CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q}
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+= --disable-dependency-tracking
PKGCONFIG_OVERRIDE+= src/libckyapplet/libckyapplet.pc.in
pre-configure:
cd ${WRKSRC} && autoconf
.include "../../security/pcsc-lite/buildlink3.mk"
.include "../../security/ccid/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+11
View File
@@ -0,0 +1,11 @@
@comment $NetBSD: PLIST,v 1.2 2009/06/14 18:13:25 joerg Exp $
include/cky_applet.h
include/cky_base.h
include/cky_card.h
include/cky_factory.h
include/cky_list.h
lib/libckyapplet.so
lib/libckyapplet.so.1
lib/libckyapplet.so.1.0.0
lib/pkcs11/libcoolkeypk11.so
lib/pkgconfig/libckyapplet.pc
+14
View File
@@ -0,0 +1,14 @@
$NetBSD: distinfo,v 1.4 2013/04/29 21:31:12 joerg Exp $
SHA1 (coolkey-1.1.0.tar.gz) = 54136decf9dfd091c8b231cb77dac97db95e1866
RMD160 (coolkey-1.1.0.tar.gz) = 1873e85aecb30c5311444c76fd85ba79633dce23
Size (coolkey-1.1.0.tar.gz) = 432808 bytes
SHA1 (patch-aa) = f91d804c54540f45e7791b3ca9a1fb987bde0a72
SHA1 (patch-ab) = 6aed241ec856b7b826e7c9953e286088d8960feb
SHA1 (patch-ac) = 8b7604ea677471a7ee5c1d7c9f4f6f4c03468350
SHA1 (patch-src_coolkey_log.cpp) = 2e9fe538236496a924eb3a12a43a4336e814aabb
SHA1 (patch-src_coolkey_object.cpp) = a28c9a56e4a184bcdf73be9d64ef133b691ccf0e
SHA1 (patch-src_coolkey_params.h) = 21b7ae6a872a7d79d884d7a380f131839d867aff
SHA1 (patch-src_coolkey_slot.cpp) = a797e9e2dcc04598fb3e322fe7f78326c9ea1de6
SHA1 (patch-src_libckyapplet_cky_card.c) = 7c662083d622b464a74322aef883f211b8ac9420
SHA1 (patch-src_libckyapplet_cky_card.h) = 94067de1f656ef85eec7f13614f55760bf5fe338
+30
View File
@@ -0,0 +1,30 @@
$NetBSD: patch-aa,v 1.1.1.1 2008/03/04 11:33:02 shannonjr Exp $
--- configure.in.orig 2007-02-16 12:50:50.000000000 -0700
+++ configure.in
@@ -101,7 +101,8 @@ AC_PROG_LN_S
# Checks for libraries.
if test $WINDOWS -ne 1; then
AC_CHECK_LIB(z, uncompress, , AC_MSG_ERROR(could not locate libz compression library))
-AC_CHECK_LIB(dl, dlopen, , AC_MSG_ERROR(could not locate dynamic library services library))
+# NetBSD: dlopen is not in a library. It is included in every dynamically linked program automatically.
+#AC_CHECK_LIB(dl, dlopen, , AC_MSG_ERROR(could not locate dynamic library services library))
fi
# add our compiled static libraries
@@ -121,12 +122,13 @@ AC_ARG_ENABLE(pk11install,
[ --enable-pk11install build an installer for legacy user apps(default=no)])
if test "$enable_pk11install" = "yes" -o "$enable_pk11install" = "true"
then
+/* Bugzilla Bug 250738: build patches for coolkey */
if test $WINDOWS -ne 1; then
PKG_CHECK_MODULES(NSS, nss, true, [ AC_MSG_ERROR(could not find NSS Crypto libraries) ])
fi
- enable_pk11install = "yes"
+ enable_pk11install="yes"
else
- enable_pk11install = "no"
+ enable_pk11install="no"
AC_MSG_WARN([skipping pk11install])
fi
+192
View File
@@ -0,0 +1,192 @@
$NetBSD: patch-ab,v 1.2 2011/11/25 22:17:49 joerg Exp $
--- src/coolkey/machdep.cpp.orig 2007-02-14 00:46:28.000000000 +0000
+++ src/coolkey/machdep.cpp
@@ -17,6 +17,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* ***** END COPYRIGHT BLOCK *****/
+/* Patch from RedHAT coolkey-1.1.0-5.el5.src.rpm */
+
#include "machdep.h"
#include "mypkcs11.h"
#include "PKCS11Exception.h"
@@ -32,6 +34,8 @@
#include <sys/time.h>
#include <sys/stat.h>
#include <sys/mman.h>
+#include <stdlib.h>
+#include <string.h>
#include <pthread.h>
#endif
@@ -185,12 +189,20 @@ void OSSleep(int time)
#define MAP_INHERIT 0
#endif
+#ifndef BASEPATH
+#ifdef MAC
+#define BASEPATH "/var"
+#else
+#define BASEPATH "/var/cache"
+#endif
+#endif
+
#ifdef FULL_CLEANUP
#define RESERVED_OFFSET 256
-#define MEMSEGPATH "/tmp/.pk11ipc"
+#define MEMSEGPATH BASEPATH"/coolkey-lock"
#else
#define RESERVED_OFFSET 0
-#define MEMSEGPATH "/tmp/.pk11ipc1"
+#define MEMSEGPATH BASEPATH"/coolkey"
#endif
struct SHMemData {
@@ -208,11 +220,6 @@ SHMemData::~SHMemData() {
#ifdef FULL_CLEANUP
flock(fd,LOCK_EX);
unsigned long ref = --(*(unsigned long *)addr);
-#ifdef notdef
- if (ref == 0) {
- unlink(path);
- }
-#endif
flock(fd, LOCK_UN);
#endif
munmap(addr,size+RESERVED_OFFSET);
@@ -225,6 +232,73 @@ SHMemData::~SHMemData() {
}
}
+/*
+ * The cache directory is shared and accessible by anyone, make
+ * sure the cache file we are opening is really a valid cache file.
+ */
+int safe_open(char *path, int flags, int mode, int size)
+{
+ struct stat buf;
+ int fd, ret;
+
+ fd = open (path, flags|O_NOFOLLOW, mode);
+
+ if (fd < 0) {
+ return fd;
+ }
+
+ ret = fstat(fd, &buf);
+ if (ret < 0) {
+ close (fd);
+ return ret;
+ }
+
+ /* our cache files are pretty specific, make sure we are looking
+ * at the correct one */
+
+ /* first, we should own the file ourselves, don't open a file
+ * that someone else wanted us to see. */
+ if (buf.st_uid != getuid()) {
+ close(fd);
+ errno = EACCES;
+ return -1;
+ }
+
+ /* next, there should only be one link in this file. Don't
+ * use this code to trash another file */
+ if (buf.st_nlink != 1) {
+ close(fd);
+ errno = EMLINK;
+ return -1;
+ }
+
+ /* next, This better be a regular file */
+ if (!S_ISREG(buf.st_mode)) {
+ close(fd);
+ errno = EACCES;
+ return -1;
+ }
+
+ /* if the permissions don't match, something is wrong */
+ if ((buf.st_mode & 03777) != mode) {
+ close(fd);
+ errno = EACCES;
+ return -1;
+ }
+
+ /* finally the file should be the correct size. This
+ * check isn't so much to protect from an attack, as it is to
+ * detect a corrupted cache file */
+ if (buf.st_size != size) {
+ close(fd);
+ errno = EACCES;
+ return -1;
+ }
+
+ /* OK, the file checked out, ok to continue */
+ return fd;
+}
+
SHMem::SHMem(): shmemData(0) {}
SHMem *
@@ -248,7 +322,7 @@ SHMem::initSegment(const char *name, int
return NULL;
}
int mask = umask(0);
- int ret = mkdir (MEMSEGPATH, 0777);
+ int ret = mkdir (MEMSEGPATH, 01777);
umask(mask);
if ((ret == -1) && (errno != EEXIST)) {
delete shmemData;
@@ -264,21 +338,16 @@ SHMem::initSegment(const char *name, int
shmemData->path[sizeof(MEMSEGPATH)-1] = '/';
strcpy(&shmemData->path[sizeof(MEMSEGPATH)],name);
- int mode = 0777;
- if (strcmp(name,"token_names") != 0) {
- /* each user gets his own uid array */
- sprintf(uid_str, "-%u",getuid());
- strcat(shmemData->path,uid_str);
- mode = 0700;
- }
+ sprintf(uid_str, "-%u",getuid());
+ strcat(shmemData->path,uid_str);
+ int mode = 0600;
+
shmemData->fd = open(shmemData->path,
O_CREAT|O_RDWR|O_EXCL|O_APPEND|O_EXLOCK, mode);
- if (shmemData->fd < 0) {
- needInit = false;
- shmemData->fd = open(shmemData->path,O_RDWR|O_EXLOCK, mode);
- } else {
+ if (shmemData->fd >= 0) {
char *buf;
int len = size+RESERVED_OFFSET;
+ int ret;
buf = (char *)calloc(1,len);
if (!buf) {
@@ -289,8 +358,22 @@ SHMem::initSegment(const char *name, int
delete shmemData;
return NULL;
}
- write(shmemData->fd,buf,len);
+ ret = write(shmemData->fd,buf,len);
+ if (ret != len) {
+ unlink(shmemData->path);
+#ifdef FULL_CLEANUP
+ flock(shmemData->fd, LOCK_UN);
+#endif
+ delete shmemData;
+ return NULL;
+ }
+
free(buf);
+ } else if (errno == EEXIST) {
+ needInit = false;
+
+ shmemData->fd = safe_open(shmemData->path,O_RDWR|O_EXLOCK, mode,
+ size+RESERVED_OFFSET);
}
if (shmemData->fd < 0) {
delete shmemData;
+14
View File
@@ -0,0 +1,14 @@
$NetBSD: patch-ac,v 1.1.1.1 2008/03/04 11:33:02 shannonjr Exp $
--- ./src/coolkey/coolkey.cpp.orig 2007-02-14 12:54:01.000000000 -0700
+++ ./src/coolkey/coolkey.cpp
@@ -34,7 +34,9 @@
#include "cky_base.h"
#include "params.h"
+#ifndef NULL
#define NULL 0
+#endif
/* static module data -------------------------------- */
@@ -0,0 +1,13 @@
$NetBSD: patch-src_coolkey_log.cpp,v 1.1 2011/11/25 22:17:49 joerg Exp $
--- src/coolkey/log.cpp.orig 2011-11-25 17:05:01.000000000 +0000
+++ src/coolkey/log.cpp
@@ -21,6 +21,8 @@
#include "mypkcs11.h"
#include <assert.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <strings.h>
#include "log.h"
#include <cstdarg>
#include "PKCS11Exception.h"
@@ -0,0 +1,12 @@
$NetBSD: patch-src_coolkey_object.cpp,v 1.1 2011/11/25 22:17:49 joerg Exp $
--- src/coolkey/object.cpp.orig 2011-11-25 17:09:14.000000000 +0000
+++ src/coolkey/object.cpp
@@ -21,6 +21,7 @@
#include "PKCS11Exception.h"
#include "object.h"
#include <algorithm>
+#include <cstring>
using std::find_if;
@@ -0,0 +1,12 @@
$NetBSD: patch-src_coolkey_params.h,v 1.1 2013/04/29 21:31:12 joerg Exp $
--- src/coolkey/params.h.orig 2013-04-29 20:24:44.000000000 +0000
+++ src/coolkey/params.h
@@ -20,6 +20,7 @@
#ifndef COOLKEY_PARAMS_H
#define COOLKEY_PARAMS_H
+#include <cstdlib>
class Params {
@@ -0,0 +1,13 @@
$NetBSD: patch-src_coolkey_slot.cpp,v 1.1 2011/11/25 22:17:49 joerg Exp $
--- src/coolkey/slot.cpp.orig 2011-11-25 17:09:33.000000000 +0000
+++ src/coolkey/slot.cpp
@@ -31,6 +31,8 @@
#include "machdep.h"
+#include <memory>
+
#define MIN(x, y) ((x) < (y) ? (x) : (y))
using std::auto_ptr;
@@ -0,0 +1,23 @@
$NetBSD: patch-src_libckyapplet_cky_card.c,v 1.1 2012/12/15 01:07:17 pettai Exp $
Build fix for a more modern pcsc-lite.
--- src/libckyapplet/cky_card.c.orig 2012-12-11 21:28:26.000000000 +0000
+++ src/libckyapplet/cky_card.c
@@ -27,7 +27,6 @@
#ifndef WINAPI
#define WINAPI
-typedef SCARD_READERSTATE *LPSCARD_READERSTATE;
#endif
#ifndef SCARD_E_NO_READERS_AVAILABLE
@@ -108,7 +107,7 @@ typedef long (WINAPI * SCardGetAttribFn)
typedef long (WINAPI * SCardGetStatusChangeFn) (
SCARDCONTEXT hContext,
unsigned long dwTimeout,
- LPSCARD_READERSTATE rgReaderStates,
+ SCARD_READERSTATE *rgReaderStates,
unsigned long cReaders);
typedef long (WINAPI * SCardCancelFn) (
@@ -0,0 +1,50 @@
$NetBSD: patch-src_libckyapplet_cky_card.h,v 1.1 2012/12/15 01:07:17 pettai Exp $
Build fix for a more modern pcsc-lite.
--- src/libckyapplet/cky_card.h.orig 2012-12-11 21:28:32.000000000 +0000
+++ src/libckyapplet/cky_card.h
@@ -41,23 +41,23 @@ CKYLIST_DECLARE(CKYReaderName, char *)
CKYLIST_DECLARE(CKYCardConnection, CKYCardConnection *)
CKY_BEGIN_PROTOS
-void CKYReader_Init(SCARD_READERSTATE_A *reader);
-void CKYReader_FreeData(SCARD_READERSTATE_A *reader);
+void CKYReader_Init(SCARD_READERSTATE *reader);
+void CKYReader_FreeData(SCARD_READERSTATE *reader);
/*
- * "Accessors": for SCARD_READERSTATE_A structure as a class.
- * These functions take an SCARD_READERSTATE_A which can also be referenced
+ * "Accessors": for SCARD_READERSTATE structure as a class.
+ * These functions take an SCARD_READERSTATE which can also be referenced
* directly.
*/
-CKYStatus CKYReader_SetReaderName(SCARD_READERSTATE_A *reader, const char *name);
-const char *CKYReader_GetReaderName(const SCARD_READERSTATE_A *reader);
-CKYStatus CKYReader_SetKnownState(SCARD_READERSTATE_A *reader,
+CKYStatus CKYReader_SetReaderName(SCARD_READERSTATE *reader, const char *name);
+const char *CKYReader_GetReaderName(const SCARD_READERSTATE *reader);
+CKYStatus CKYReader_SetKnownState(SCARD_READERSTATE *reader,
unsigned long state);
-unsigned long CKYReader_GetKnownState(const SCARD_READERSTATE_A *reader);
-unsigned long CKYReader_GetEventState(const SCARD_READERSTATE_A *reader);
-CKYStatus CKYReader_GetATR(const SCARD_READERSTATE_A *reader, CKYBuffer *buf);
+unsigned long CKYReader_GetKnownState(const SCARD_READERSTATE *reader);
+unsigned long CKYReader_GetEventState(const SCARD_READERSTATE *reader);
+CKYStatus CKYReader_GetATR(const SCARD_READERSTATE *reader, CKYBuffer *buf);
/* create an array of READERSTATEs from a LIST of Readers */
-SCARD_READERSTATE_A *CKYReader_CreateArray(const CKYReaderNameList readerNames,
+SCARD_READERSTATE *CKYReader_CreateArray(const CKYReaderNameList readerNames,
unsigned long *readerCount);
/* frees the reader, then the full array */
void CKYReader_DestroyArray(SCARD_READERSTATE *reader, unsigned long count);
@@ -88,7 +88,7 @@ CKYStatus CKYCardContext_FindReadersByAT
const CKYBuffer *targetATR);
/* return if any of the readers in our array has changed in status */
CKYStatus CKYCardContext_WaitForStatusChange(CKYCardContext *context,
- SCARD_READERSTATE_A *readers,
+ SCARD_READERSTATE *readers,
unsigned long readerCount,
unsigned long timeout);
/* cancel any current operation (such as wait for status change) on this
+4
View File
@@ -0,0 +1,4 @@
EasyPG is a GnuPG interface for Emacs. It has two aspects: convenient
tools which allow to use GnuPG from Emacs (EasyPG Assistant), and a
fully functional interface library to GnuPG (EasyPG Library.) It does
not cache passphrases, so gpg-agent (security/gnupg2) is recommended.
+25
View File
@@ -0,0 +1,25 @@
# $NetBSD: Makefile,v 1.17 2013/04/06 20:27:27 rodent Exp $
DISTNAME= epg-0.0.16
PKGNAME= ${EMACS_PKGNAME_PREFIX}${DISTNAME:S/epg/EasyPG/}
PKGREVISION= 2
CATEGORIES= security mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP:=epg/29289/}
MAINTAINER= gdt@NetBSD.org
HOMEPAGE= http://www.easypg.org/
COMMENT= GnuPG interface for emacs
GNU_CONFIGURE= YES
MAKE_FLAGS+= lispdir=${EMACS_LISPPREFIX:Q}
INSTALL_MAKE_FLAGS+= lispdir=${DESTDIR}${EMACS_LISPPREFIX:Q}
INFO_FILES= yes
# per README: GnuPG 1.4.3
DEPENDS+= gnupg>=1.4.3:../../security/gnupg
# per README: GNU Emacs 21.4, XEmacs 21.4, or later
EMACS_VERSIONS_ACCEPTED= emacs23 emacs21 emacs21nox emacs22 emacs22nox xemacs214 xemacs215
.include "../../editors/emacs/modules.mk"
.include "../../mk/bsd.pkg.mk"
+18
View File
@@ -0,0 +1,18 @@
@comment $NetBSD: PLIST,v 1.4 2009/06/14 18:13:25 joerg Exp $
info/epa.info
share/emacs/site-lisp/epg/epa-dired.el
share/emacs/site-lisp/epg/epa-dired.elc
share/emacs/site-lisp/epg/epa-file.el
share/emacs/site-lisp/epg/epa-file.elc
share/emacs/site-lisp/epg/epa-mail.el
share/emacs/site-lisp/epg/epa-mail.elc
share/emacs/site-lisp/epg/epa-setup.el
share/emacs/site-lisp/epg/epa-setup.elc
share/emacs/site-lisp/epg/epa.el
share/emacs/site-lisp/epg/epa.elc
share/emacs/site-lisp/epg/epg-config.el
share/emacs/site-lisp/epg/epg-config.elc
share/emacs/site-lisp/epg/epg-package-info.el
share/emacs/site-lisp/epg/epg-package-info.elc
share/emacs/site-lisp/epg/epg.el
share/emacs/site-lisp/epg/epg.elc
+5
View File
@@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.6 2008/11/13 08:15:34 minskim Exp $
SHA1 (epg-0.0.16.tar.gz) = 37ccd3019b98ce8cccc72d969910d112013be8b8
RMD160 (epg-0.0.16.tar.gz) = e34eb706b7af989405fff7b314e03e1eb1e45826
Size (epg-0.0.16.tar.gz) = 203261 bytes
+6
View File
@@ -0,0 +1,6 @@
HElib is a software library that implements homomorphic encryption
(HE). Currently available is an implementation of the
Brakerski-Gentry-Vaikuntanathan (BGV) scheme, along with many
optimizations to make homomorphic evaluation run faster, focusing
mostly on effective use of the Smart-Vercauteren ciphertext packing
techniques and the Gentry-Halevi-Smart optimizations.
+25
View File
@@ -0,0 +1,25 @@
# $NetBSD: Makefile,v 1.1.1.1 2013/05/18 18:36:25 agc Exp $
DISTNAME= HElib-20130501
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_LOCAL}
EXTRACT_SUFX= .zip
MAINTAINER= agc@NetBSD.org
HOMEPAGE= http://github.com/shaih/HElib/
COMMENT= Homeomorphic Encryption library
LICENSE= gnu-gpl-v2
WRKSRC= ${WRKDIR}/HElib-master/src
USE_LANGUAGES+= c++
USE_TOOLS+= gmake
TEST_TARGET= check
AUTO_MKDIRS= yes
.include "../../devel/gmp/buildlink3.mk"
.include "../../math/ntl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+16
View File
@@ -0,0 +1,16 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2013/05/18 18:36:25 agc Exp $
FHE/CModulus.h
FHE/Ctxt.h
FHE/DoubleCRT.h
FHE/EncryptedArray.h
FHE/FHE.h
FHE/FHEContext.h
FHE/IndexMap.h
FHE/IndexSet.h
FHE/NumbTh.h
FHE/PAlgebra.h
FHE/SingleCRT.h
FHE/bluestein.h
FHE/replicate.h
FHE/timing.h
lib/libfhe.a
+9
View File
@@ -0,0 +1,9 @@
$NetBSD: distinfo,v 1.2 2013/05/21 16:37:46 joerg Exp $
SHA1 (HElib-20130501.zip) = 4f10c723eda202442550b89d98da8b9f4fdca013
RMD160 (HElib-20130501.zip) = 729115076c6e90584cf5380694903631764849fb
Size (HElib-20130501.zip) = 2287320 bytes
SHA1 (patch-IndexMap.h) = f03a5c5d64370a233bf73fd3bff369e32f8a220a
SHA1 (patch-Makefile) = e3a867712039b83f2c49c4dec2e5ff0a6c26f6ac
SHA1 (patch-NumbTh.h) = f99493989f67d34595bc4e47b159dc75a952b158
SHA1 (patch-timing.cpp) = 87e2638022326ef9bcb28c8617aa3d8d34c3aa85
+40
View File
@@ -0,0 +1,40 @@
$NetBSD: patch-IndexMap.h,v 1.1 2013/05/21 16:37:46 joerg Exp $
--- IndexMap.h.orig 2013-05-21 14:44:35.000000000 +0000
+++ IndexMap.h
@@ -21,9 +21,14 @@
**/
#include "IndexSet.h"
-#include <tr1/unordered_map>
#include <iostream>
#include <cassert>
+#if __cplusplus >= 201103L || defined(_LIBCPP_VERSION)
+#include <unordered_map>
+#else
+#include <tr1/unordered_map>
+using std::tr1::unordered_map;
+#endif
#include "cloned_ptr.h"
using namespace std;
@@ -46,7 +51,7 @@ public:
//! flexible manner.
template < class T > class IndexMap {
- tr1::unordered_map<long, T> map;
+ unordered_map<long, T> map;
IndexSet indexSet;
cloned_ptr< IndexMapInit<T> > init;
@@ -78,8 +83,8 @@ public:
assert(indexSet.contains(j));
// unordered_map does not support a const [] operator,
// so we have to artificially strip away the const-ness here
- tr1::unordered_map<long, T> & map1 =
- const_cast< tr1::unordered_map<long, T> & > (map);
+ unordered_map<long, T> & map1 =
+ const_cast< unordered_map<long, T> & > (map);
return map1[j];
}
+46
View File
@@ -0,0 +1,46 @@
$NetBSD: patch-Makefile,v 1.1.1.1 2013/05/18 18:36:25 agc Exp $
adapt for pkgsrc
add an install target
--- Makefile.orig 2013-04-30 14:31:26.000000000 -0700
+++ Makefile 2013-05-07 11:20:59.000000000 -0700
@@ -16,7 +16,7 @@
CC = g++
#CFLAGS = -g -Wall -O3 -I/usr/local/include
#CFLAGS = -g -Wall -I/usr/local/include
-CFLAGS = -g -O2 -Wfatal-errors -Wshadow -Wall -I/usr/local/include
+CFLAGS = -g -Wall -O2 -I${PREFIX}/include
#CFLAGS = -pg -Wall -I/usr/local/include
LD = g++
@@ -41,12 +41,12 @@
all: fhe.a
check: Test_General_x
- Test_General_x R=1 k=10 p=2 r=1 d=1
- Test_General_x R=1 k=10 p=2 r=2 d=1
- Test_General_x R=1 k=10 p=2 r=1 d=2
- Test_General_x R=1 k=10 p=3 r=1 d=1
- Test_General_x R=1 k=10 p=3 r=2 d=1
- Test_General_x R=1 k=10 p=3 r=1 d=2
+ env LD_LIBRARY_PATH=${PREFIX}/lib ./Test_General_x R=1 k=10 p=2 r=1 d=1
+ env LD_LIBRARY_PATH=${PREFIX}/lib ./Test_General_x R=1 k=10 p=2 r=2 d=1
+ env LD_LIBRARY_PATH=${PREFIX}/lib ./Test_General_x R=1 k=10 p=2 r=1 d=2
+ env LD_LIBRARY_PATH=${PREFIX}/lib ./Test_General_x R=1 k=10 p=3 r=1 d=1
+ env LD_LIBRARY_PATH=${PREFIX}/lib ./Test_General_x R=1 k=10 p=3 r=2 d=1
+ env LD_LIBRARY_PATH=${PREFIX}/lib ./Test_General_x R=1 k=10 p=3 r=1 d=2
test: $(TESTPROGS)
@@ -64,3 +64,10 @@
clean:
rm -f *.o *_x *_x.exe *.a core.*
rm -rf *.dSYM
+
+install:
+ ${BSD_INSTALL_LIB} fhe.a ${DESTDIR}${PREFIX}/lib/libfhe.a
+ ${BSD_INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/FHE
+ for h in ${HEADER}; do \
+ ${BSD_INSTALL_DATA} $$h ${DESTDIR}${PREFIX}/FHE/$$h; \
+ done
+24
View File
@@ -0,0 +1,24 @@
$NetBSD: patch-NumbTh.h,v 1.1 2013/05/21 16:37:46 joerg Exp $
--- NumbTh.h.orig 2013-05-21 14:43:10.000000000 +0000
+++ NumbTh.h
@@ -32,13 +32,18 @@
#include <NTL/mat_GF2E.h>
#include <NTL/lzz_pXFactoring.h>
#include <NTL/GF2XFactoring.h>
+#if __cplusplus >= 201103L || defined(_LIBCPP_VERSION)
+#include <unordered_map>
+#else
#include <tr1/unordered_map>
+using std::tr1::unordered_map;
+#endif
#include <string>
NTL_CLIENT
//! @typedef
-typedef tr1::unordered_map<string, const char *> argmap_t;
+typedef unordered_map<string, const char *> argmap_t;
//! @brief Code for parsing command line arguments.
+34
View File
@@ -0,0 +1,34 @@
$NetBSD: patch-timing.cpp,v 1.1 2013/05/21 16:37:46 joerg Exp $
--- timing.cpp.orig 2013-05-21 14:42:27.000000000 +0000
+++ timing.cpp
@@ -16,13 +16,19 @@
#include <ctime>
#include <iostream>
#include "timing.h"
-#include <tr1/unordered_map>
#include <vector>
#include <algorithm>
#include <utility>
#include <cmath>
#include <cstring>
+#if __cplusplus >= 201103L || defined(_LIBCPP_VERSION)
+#include <unordered_map>
+#else
+#include <tr1/unordered_map>
+using std::tr1::unordered_map;
+#endif
+
using namespace std;
//! A simple class to toggle timing information on and off
@@ -43,7 +49,7 @@ bool string_compare(const char *a, const
bool FHEtimersOn=false;
-typedef tr1::unordered_map<const char*,FHEtimer>timerMap;
+typedef unordered_map<const char*,FHEtimer>timerMap;
static timerMap timers;
// Reset a timer for some label to zero
+16
View File
@@ -0,0 +1,16 @@
Today you need to remember many passwords. You need a password for
the Windows network logon, your e-mail account, your website's FTP
password, online passwords (like website member account), etc. etc.
etc. The list is endless. Also, you should use different passwords
for each account. Because if you use only one password everywhere
and someone gets this password you have a problem... A serious
problem. The thief would have access to your e-mail account, website,
etc. Unimaginable.
KeePass is a free open source password manager, which helps you to
manage your passwords in a secure way. You can put all your passwords
in one database, which is locked with one master key or a key file.
So you only have to remember one single master password or select
the key file to unlock the whole database. The databases are
encrypted using the best and most secure encryption algorithms
currently known (AES and Twofish).
+32
View File
@@ -0,0 +1,32 @@
# $NetBSD: Makefile,v 1.8 2013/06/17 12:44:54 wiz Exp $
#
DISTNAME= KeePass-2.21
PKGREVISION= 2
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=keepass/}
EXTRACT_SUFX= .zip
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://keepass.info/
COMMENT= Free, open source, light-weight and easy-to-use password manager
LICENSE= gnu-gpl-v2
DEPENDS+= mono>=2.6<3:../../lang/mono2
WRKSRC= ${WRKDIR}
USE_LANGUAGES= # none
INSTALLATION_DIRS= bin libexec/KeePass/XSL
do-build:
${ECHO} '#!/bin/sh' > ${WRKSRC}/KeePass
${ECHO} "${PREFIX}/bin/mono ${PREFIX}/libexec/KeePass/KeePass.exe "'"$$@"' >> ${WRKSRC}/KeePass
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/KeePass ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/*.* ${DESTDIR}${PREFIX}/libexec/KeePass
${INSTALL_DATA} ${WRKSRC}/XSL/* ${DESTDIR}${PREFIX}/libexec/KeePass/XSL
.include "../../graphics/libgdiplus/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+16
View File
@@ -0,0 +1,16 @@
@comment $NetBSD: PLIST,v 1.1 2012/10/27 22:18:50 wiz Exp $
bin/KeePass
libexec/KeePass/KeePass.XmlSerializers.dll
libexec/KeePass/KeePass.chm
libexec/KeePass/KeePass.exe
libexec/KeePass/KeePass.exe.config
libexec/KeePass/KeePassLibC32.dll
libexec/KeePass/KeePassLibC64.dll
libexec/KeePass/License.txt
libexec/KeePass/ShInstUtil.exe
libexec/KeePass/XSL/KDBX_DetailsFull.xsl
libexec/KeePass/XSL/KDBX_DetailsLite.xsl
libexec/KeePass/XSL/KDBX_PasswordsOnly.xsl
libexec/KeePass/XSL/KDBX_Styles.css
libexec/KeePass/XSL/KDBX_Tabular.xsl
libexec/KeePass/XSL/TableHeader.gif
+5
View File
@@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.2 2013/03/15 21:21:07 wiz Exp $
SHA1 (KeePass-2.21.zip) = a7f85e488581c3982873a9aa7084ee833940e886
RMD160 (KeePass-2.21.zip) = aaa9dbc6ccce698d633878ee1dc37e2b326b23e9
Size (KeePass-2.21.zip) = 2281060 bytes
+419
View File
@@ -0,0 +1,419 @@
# $NetBSD: Makefile,v 1.472 2013/06/14 09:41:25 kleink Exp $
#
COMMENT= Security tools
SUBDIR+= Bastille
SUBDIR+= CSP
SUBDIR+= CoolKey
SUBDIR+= EasyPG
SUBDIR+= HElib
SUBDIR+= KeePass
SUBDIR+= MyPasswordSafe
SUBDIR+= PAM
SUBDIR+= aide
SUBDIR+= aide06
SUBDIR+= amap
SUBDIR+= antonym
SUBDIR+= ap-modsecurity
SUBDIR+= ap-modsecurity2
SUBDIR+= apg
SUBDIR+= arirang
SUBDIR+= avcheck
SUBDIR+= base
SUBDIR+= bcrypt
SUBDIR+= beecrypt
SUBDIR+= bitstir
SUBDIR+= botan
SUBDIR+= caff
SUBDIR+= ccid
SUBDIR+= cfs
SUBDIR+= chkrootkit
SUBDIR+= clamav
SUBDIR+= clusterssh
SUBDIR+= courier-authlib
SUBDIR+= crack
#SUBDIR+= crudesaml # only shared files
SUBDIR+= crypto++
SUBDIR+= cvm
SUBDIR+= cy2-anonymous
SUBDIR+= cy2-crammd5
SUBDIR+= cy2-digestmd5
SUBDIR+= cy2-gssapi
SUBDIR+= cy2-ldapdb
SUBDIR+= cy2-login
SUBDIR+= cy2-ntlm
SUBDIR+= cy2-otp
SUBDIR+= cy2-plain
SUBDIR+= cy2-saml
SUBDIR+= cy2-scram
SUBDIR+= cy2-sql
SUBDIR+= cyrus-sasl
SUBDIR+= cyrus-saslauthd
SUBDIR+= ddos-scan
SUBDIR+= destroy
SUBDIR+= dhbitty
SUBDIR+= dirb
SUBDIR+= dirmngr
SUBDIR+= dnssec-tools
SUBDIR+= dropbear
SUBDIR+= dsniff
SUBDIR+= dsniff-nox11
SUBDIR+= egd
SUBDIR+= engine-pkcs11
SUBDIR+= ent
#SUBDIR+= f-prot-antivirus6 # only contains shared files
SUBDIR+= f-prot-antivirus6-fs-bin
SUBDIR+= f-prot-antivirus6-ms-bin
SUBDIR+= f-prot-antivirus6-ws-bin
SUBDIR+= flawfinder
SUBDIR+= fprint-demo
SUBDIR+= fragroute
SUBDIR+= fsh
SUBDIR+= fwbuilder
SUBDIR+= gnome-keyring
SUBDIR+= gnome-keyring-manager
SUBDIR+= gnome-keyring-sharp
SUBDIR+= gnu-crypto
SUBDIR+= gnupg
SUBDIR+= gnupg-pkcs11-scd
SUBDIR+= gnupg2
SUBDIR+= gnutls
SUBDIR+= google-authenticator
SUBDIR+= gpa
SUBDIR+= gpass
SUBDIR+= gpg2dot
SUBDIR+= gpgme
SUBDIR+= gsasl
SUBDIR+= gss
SUBDIR+= gtk-systrace
SUBDIR+= hackbot
SUBDIR+= hashcash
SUBDIR+= heimdal
SUBDIR+= heirloom-su
SUBDIR+= honeyd
SUBDIR+= honeyd-arpd
SUBDIR+= hydan
SUBDIR+= hydra
SUBDIR+= ike-scan
SUBDIR+= ipsec-tools
SUBDIR+= ipv6-toolkit
SUBDIR+= isakmpd
SUBDIR+= jessie
SUBDIR+= john
SUBDIR+= keepassx
SUBDIR+= keychain
SUBDIR+= kgpg
SUBDIR+= knc
SUBDIR+= kpcli
SUBDIR+= kssh
SUBDIR+= kstart
SUBDIR+= kth-krb4
SUBDIR+= kwallet
SUBDIR+= lasso
SUBDIR+= libassuan
SUBDIR+= libassuan2
SUBDIR+= libbf
SUBDIR+= libcrack
SUBDIR+= libdes
SUBDIR+= libfprint
SUBDIR+= libfwbuilder
SUBDIR+= libgcrypt
SUBDIR+= libgnome-keyring
SUBDIR+= libgpg-error
SUBDIR+= libidea
SUBDIR+= libident
SUBDIR+= libksba
SUBDIR+= libmcrypt
SUBDIR+= libnetpgpverify
SUBDIR+= liboauth
SUBDIR+= libp11
SUBDIR+= libpbc
SUBDIR+= libprelude
SUBDIR+= libprelude-lua
SUBDIR+= libprelude-perl
SUBDIR+= libprelude-python
SUBDIR+= libprelude-ruby
SUBDIR+= libpreludedb
SUBDIR+= libpreludedb-mysql
SUBDIR+= libpreludedb-perl
SUBDIR+= libpreludedb-pgsql
SUBDIR+= libpreludedb-python
SUBDIR+= libpreludedb-sqlite3
SUBDIR+= libsecret
SUBDIR+= libsodium
SUBDIR+= libssh
SUBDIR+= libssh2
SUBDIR+= libtasn1
SUBDIR+= libtcpa
SUBDIR+= libtomcrypt
SUBDIR+= libyubikey
SUBDIR+= log2timeline
SUBDIR+= logcheck
SUBDIR+= lsh
SUBDIR+= lua-sec
SUBDIR+= mcrypt
SUBDIR+= md4-collision
SUBDIR+= md5-collision
SUBDIR+= mhash
SUBDIR+= mirrordir
SUBDIR+= mit-krb5
SUBDIR+= mit-krb5-appl
SUBDIR+= mixminion
SUBDIR+= mozilla-rootcerts
SUBDIR+= msu
SUBDIR+= msudir
SUBDIR+= munge
SUBDIR+= netpgp
SUBDIR+= netpgpverify
SUBDIR+= netramet
SUBDIR+= nettle
SUBDIR+= nfsbug
SUBDIR+= nikto
SUBDIR+= oath-toolkit
SUBDIR+= ocaml-cryptokit
SUBDIR+= ocaml-ssl
SUBDIR+= opencdk
SUBDIR+= openct
SUBDIR+= opendnssec
SUBDIR+= openpam
SUBDIR+= opensaml
SUBDIR+= opensc
SUBDIR+= openssh
SUBDIR+= openssl
SUBDIR+= openvas-client
SUBDIR+= openvas-libnasl
SUBDIR+= openvas-libraries
SUBDIR+= openvas-plugins
SUBDIR+= openvas-server
SUBDIR+= otpCalc
SUBDIR+= otptool
SUBDIR+= p0f
SUBDIR+= p11-kit
SUBDIR+= p5-AuthCAS
SUBDIR+= p5-Authen-CAS-Client
SUBDIR+= p5-Authen-Htpasswd
SUBDIR+= p5-Authen-PAM
SUBDIR+= p5-Authen-PluggableCaptcha
SUBDIR+= p5-Authen-SASL
SUBDIR+= p5-Authen-SASL-Cyrus
SUBDIR+= p5-Authen-Simple
SUBDIR+= p5-Authen-TacacsPlus
SUBDIR+= p5-BSD-arc4random
SUBDIR+= p5-Crypt-Blowfish
SUBDIR+= p5-Crypt-CAST5_PP
SUBDIR+= p5-Crypt-CBC
SUBDIR+= p5-Crypt-CipherSaber
SUBDIR+= p5-Crypt-DES
SUBDIR+= p5-Crypt-DES_EDE3
SUBDIR+= p5-Crypt-DH
SUBDIR+= p5-Crypt-DSA
SUBDIR+= p5-Crypt-ECB
SUBDIR+= p5-Crypt-Eksblowfish
SUBDIR+= p5-Crypt-GPG
SUBDIR+= p5-Crypt-GeneratePassword
SUBDIR+= p5-Crypt-IDEA
SUBDIR+= p5-Crypt-OpenPGP
SUBDIR+= p5-Crypt-OpenSSL-AES
SUBDIR+= p5-Crypt-OpenSSL-Bignum
SUBDIR+= p5-Crypt-OpenSSL-DSA
SUBDIR+= p5-Crypt-OpenSSL-RSA
SUBDIR+= p5-Crypt-OpenSSL-Random
SUBDIR+= p5-Crypt-PasswdMD5
SUBDIR+= p5-Crypt-Primes
SUBDIR+= p5-Crypt-RC4
SUBDIR+= p5-Crypt-RIPEMD160
SUBDIR+= p5-Crypt-RSA
SUBDIR+= p5-Crypt-RandPasswd
SUBDIR+= p5-Crypt-Random
SUBDIR+= p5-Crypt-Rijndael
SUBDIR+= p5-Crypt-SSLeay
SUBDIR+= p5-Crypt-SmbHash
SUBDIR+= p5-Crypt-Twofish
SUBDIR+= p5-Data-SimplePassword
SUBDIR+= p5-Digest
SUBDIR+= p5-Digest-BubbleBabble
SUBDIR+= p5-Digest-CRC
SUBDIR+= p5-Digest-HMAC
SUBDIR+= p5-Digest-Hashcash
SUBDIR+= p5-Digest-MD2
SUBDIR+= p5-Digest-MD4
SUBDIR+= p5-Digest-MD5
SUBDIR+= p5-Digest-MD5-File
SUBDIR+= p5-Digest-Nilsimsa
SUBDIR+= p5-Digest-Perl-MD5
SUBDIR+= p5-Digest-SHA
SUBDIR+= p5-Digest-SHA1
SUBDIR+= p5-File-KeePass
SUBDIR+= p5-GSSAPI
SUBDIR+= p5-GnuPG-Interface
SUBDIR+= p5-IO-Socket-SSL
SUBDIR+= p5-Module-Signature
SUBDIR+= p5-Mozilla-CA
SUBDIR+= p5-Net-DNS-SEC
SUBDIR+= p5-Net-DNS-SEC-Maint-Key
SUBDIR+= p5-Net-OpenSSH
SUBDIR+= p5-Net-SSH
SUBDIR+= p5-Net-SSLeay
SUBDIR+= p5-OpenSSL
SUBDIR+= p5-SHA
SUBDIR+= p5-String-Random
SUBDIR+= p5-Text-Password-Pronounceable
SUBDIR+= p5-Tie-EncryptedHash
SUBDIR+= p5-pcsc
SUBDIR+= pakchois
SUBDIR+= pakemon
SUBDIR+= pam-af
SUBDIR+= pam-dbm
SUBDIR+= pam-fprint
SUBDIR+= pam-krb5
SUBDIR+= pam-ldap
SUBDIR+= pam-mkhomedir
SUBDIR+= pam-mysql
SUBDIR+= pam-p11
SUBDIR+= pam-passwdqc
SUBDIR+= pam-pgsql
SUBDIR+= pam-pwauth_suid
SUBDIR+= pam-radius
SUBDIR+= pam-saml
SUBDIR+= pam-tacplus
SUBDIR+= pam-yubico
SUBDIR+= pam_ssh_agent_auth
SUBDIR+= paperkey
SUBDIR+= pcsc-lite
SUBDIR+= pcsc-tools
SUBDIR+= pgp2
SUBDIR+= pgp5
SUBDIR+= pgpdump
SUBDIR+= pgpenvelope
SUBDIR+= php-mcrypt
SUBDIR+= php-ssdeep
SUBDIR+= php-suhosin
SUBDIR+= pinentry
SUBDIR+= pinentry-gtk
SUBDIR+= pinentry-gtk2
SUBDIR+= pinentry-qt
SUBDIR+= pinentry-qt4
SUBDIR+= pinepgp
SUBDIR+= pkcs11-helper
SUBDIR+= pks
SUBDIR+= polarssl
SUBDIR+= policykit
SUBDIR+= policykit-gnome
SUBDIR+= polkit-qt
SUBDIR+= portsentry
SUBDIR+= prelude-correlator
SUBDIR+= prelude-lml
SUBDIR+= prelude-manager
SUBDIR+= prelude-pflogger
SUBDIR+= priv
SUBDIR+= prngd
SUBDIR+= pscan
SUBDIR+= putty
SUBDIR+= pwsafe
SUBDIR+= py-Des
SUBDIR+= py-OpenSSL
SUBDIR+= py-SSLCrypto
SUBDIR+= py-amkCrypto
SUBDIR+= py-asn1
SUBDIR+= py-crack
SUBDIR+= py-cryptkit
SUBDIR+= py-crypto
SUBDIR+= py-cryptopp
SUBDIR+= py-denyhosts
SUBDIR+= py-gnupg
SUBDIR+= py-itsdangerous
SUBDIR+= py-keyring
SUBDIR+= py-lasso
SUBDIR+= py-m2crypto
SUBDIR+= py-mcrypt
SUBDIR+= py-oauth
SUBDIR+= py-oauth2
SUBDIR+= py-openid
SUBDIR+= py-paramiko
SUBDIR+= py-prewikka
SUBDIR+= py-smbpasswd
SUBDIR+= py-tlslite
SUBDIR+= py-xmlsec
SUBDIR+= pyca
SUBDIR+= qca
SUBDIR+= qca-tls
SUBDIR+= qca2
SUBDIR+= qca2-gnupg
SUBDIR+= qca2-ossl
SUBDIR+= qident
SUBDIR+= qoauth
SUBDIR+= racoon2
SUBDIR+= rainbowcrack
SUBDIR+= rats
SUBDIR+= rc5des
SUBDIR+= rid
SUBDIR+= rsaref
SUBDIR+= ruby-bcrypt
SUBDIR+= ruby-ezcrypto
SUBDIR+= ruby-hmac
SUBDIR+= ruby-net-scp
SUBDIR+= ruby-net-sftp
SUBDIR+= ruby-net-ssh
SUBDIR+= ruby-net-ssh-gateway
SUBDIR+= ruby-oauth
SUBDIR+= ruby-password
SUBDIR+= ruby-rc4
SUBDIR+= ruby-roauth
SUBDIR+= ruby-shadow
SUBDIR+= ruby-simple_oauth
SUBDIR+= ruby-soauth
SUBDIR+= ruby-tcpwrap
SUBDIR+= ruby-twitter_oauth
SUBDIR+= sbd
SUBDIR+= scanssh
SUBDIR+= scrypt
SUBDIR+= seahorse
SUBDIR+= seahorse-plugins
SUBDIR+= seccure
SUBDIR+= secpanel
SUBDIR+= sfs
SUBDIR+= sign
SUBDIR+= skey
SUBDIR+= sks
SUBDIR+= smtpd
SUBDIR+= sniff
SUBDIR+= snortsnarf
SUBDIR+= snow
SUBDIR+= softhsm
SUBDIR+= srm
SUBDIR+= srp_client
SUBDIR+= ssdeep
SUBDIR+= ssh-askpass
SUBDIR+= ssh-ip-tunnel
SUBDIR+= sshfp
SUBDIR+= sshpass
SUBDIR+= ssldump
SUBDIR+= sslproxy
SUBDIR+= sslwrap
SUBDIR+= ssss
SUBDIR+= starttls
SUBDIR+= steghide
SUBDIR+= stegtunnel
SUBDIR+= stud
SUBDIR+= stunnel
SUBDIR+= sudo
SUBDIR+= systrace-policies
SUBDIR+= tacshell
SUBDIR+= tcl-tls
SUBDIR+= tcp_wrappers
SUBDIR+= tct
SUBDIR+= tkpasman
SUBDIR+= tripwire
SUBDIR+= uvscan
SUBDIR+= validns
SUBDIR+= xml-security-c
SUBDIR+= xmlsec1
SUBDIR+= yafic
SUBDIR+= ykclient
SUBDIR+= ykpers
SUBDIR+= zebedee
SUBDIR+= zkt
SUBDIR+= zoneminder
.include "../mk/misc/category.mk"
+14
View File
@@ -0,0 +1,14 @@
MyPasswordSafe is a straight-forward, easy-to-use password manager
that maintains compatibility with Password Safe files. MyPasswordSafe
has the following features:
* Safes are encrypted when they are stored to disk.
* Passwords never have to be seen, because they are copied to
the clipboard
* Random passwords can be generated.
* Window size, position, and column widths are remembered.
* Passwords remain encrypted until they need to be decrypted at
the dialog and file levels.
* A safe can be made active so it will always be opened when
MyPasswordSafe starts.
* Supports Unicode in the safes
* Languages supported: English and French
+24
View File
@@ -0,0 +1,24 @@
# $NetBSD: Makefile,v 1.36 2013/06/06 12:55:00 wiz Exp $
#
DISTNAME= MyPasswordSafe-20061216
PKGREVISION= 20
CATEGORIES= security
MASTER_SITES= http://www.semanticgap.com/myps/release/
DISTFILES= ${DISTNAME}.src.tgz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.semanticgap.com/myps/
COMMENT= Easy-to-use password manager
.include "options.mk"
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
USE_LANGUAGES= c c++
USE_TOOLS+= gmake
MAKE_FLAGS+= QMAKE=${QTDIR:Q}/bin/qmake
INSTALL_MAKE_FLAGS+= PREFIX=${DESTDIR}${PREFIX}
.include "../../x11/libXScrnSaver/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+12
View File
@@ -0,0 +1,12 @@
@comment $NetBSD: PLIST,v 1.2 2009/06/14 18:13:25 joerg Exp $
bin/MyPasswordSafe
share/MyPasswordSafe/locale/mypasswordsafe_c.qm
share/MyPasswordSafe/locale/mypasswordsafe_en.qm
share/MyPasswordSafe/locale/mypasswordsafe_fr.qm
share/doc/MyPasswordSafe/manual.html
share/doc/MyPasswordSafe/sshots/editdialog.fr.jpg
share/doc/MyPasswordSafe/sshots/editdialog.jpg
share/doc/MyPasswordSafe/sshots/mainwindow.fr.jpg
share/doc/MyPasswordSafe/sshots/mainwindow.jpg
share/doc/MyPasswordSafe/sshots/prefsdialog.fr.jpg
share/doc/MyPasswordSafe/sshots/prefsdialog.jpg
+15
View File
@@ -0,0 +1,15 @@
$NetBSD: distinfo,v 1.12 2013/03/28 21:43:10 joerg Exp $
SHA1 (MyPasswordSafe-20061216.src.tgz) = 37bb3f7491b42c8aac5d71cc6546ced018a15119
RMD160 (MyPasswordSafe-20061216.src.tgz) = b61f1525aed3160b88c1ef6c6922ff131ad2248c
Size (MyPasswordSafe-20061216.src.tgz) = 834084 bytes
SHA1 (patch-aa) = ef524bde4c75a822bdf035a828242e6eec5fd652
SHA1 (patch-ab) = 41f42aa0fa4f9d97431a9a01807a0a2cc838a753
SHA1 (patch-ac) = b6bd898a248da7052087a233e7aac215ad1196e2
SHA1 (patch-ad) = dabddc12850f2b323c5fc09d88b2b81eef1c4585
SHA1 (patch-ae) = e5dca33f49895f5b30d757fd41dc58d6e8bb55a0
SHA1 (patch-src-crypto-bfproxy.cpp) = cb84b4c5f474f057f0b702ff541d0587369a21e8
SHA1 (patch-src-encryptedstring.cpp) = 715f7918fce45d3c4516acbcadd99e87f58a6492
SHA1 (patch-src-pwsafe-Util.cpp) = 81b660bfbaa1472071c2ff6d859e5489b133596e
SHA1 (patch-src-safeserializer.cpp) = e63997bc2ebb452056831bf5c147435a3edb2a14
SHA1 (patch-src_xmlserializer.hpp) = 49c91a388b521c5efe5d511adee9a2bd0479ed2e
+18
View File
@@ -0,0 +1,18 @@
# $NetBSD: options.mk,v 1.1 2006/03/29 22:14:18 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.MyPasswordSafe
PKG_SUGGESTED_OPTIONS= qt3
PKG_OPTIONS_REQUIRED_GROUPS= gui
PKG_OPTIONS_GROUP.gui= qt3 # qt4 - not yet
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mqt3)
.include "../../x11/qt3-libs/buildlink3.mk"
.include "../../x11/qt3-tools/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mqt4)
.include "../../x11/qt4-libs/buildlink3.mk"
.include "../../x11/qt4-tools/buildlink3.mk"
.endif
+27
View File
@@ -0,0 +1,27 @@
$NetBSD: patch-aa,v 1.3 2006/11/30 18:51:32 joerg Exp $
--- Makefile.orig 2004-12-06 13:14:53.000000000 +0000
+++ Makefile
@@ -11,13 +11,6 @@ endif
QMAKE=qmake
DATE=$(shell date +%Y%m%d)
VERSION=0.6.7
-ifndef USER
- # get the user's name from the environment
- USER=$(USER)
-endif
-ifndef HOST
- HOST=$(shell hostname)
-endif
all: MyPasswordSafe
@@ -29,7 +22,7 @@ MyPasswordSafe.mak: MyPasswordSafe.pro
MyPasswordSafe: config uuid-1.0.0/.libs/libuuid.a MyPasswordSafe.mak
${MAKE} -f MyPasswordSafe.mak
- lrelease locale/*.ts
+ ${LOCALBASE}/qt3/bin/lrelease locale/*.ts
uuid-1.0.0/.libs/libuuid.a:
cd uuid-1.0.0 && ./configure --prefix=$(PREFIX) && cd ..
+13
View File
@@ -0,0 +1,13 @@
$NetBSD: patch-ab,v 1.2 2005/11/17 22:12:37 wiz Exp $
--- src/crypto/sha1.h.orig 2004-12-06 13:32:07.000000000 +0100
+++ src/crypto/sha1.h
@@ -15,7 +15,7 @@
#include <stdint.h>
#include <string>
-#include "endian.h"
+#include "myendian.h"
using std::string;
+13
View File
@@ -0,0 +1,13 @@
$NetBSD: patch-ac,v 1.3 2007/01/06 19:06:22 rillig Exp $
qt3-3.3.5 fix. Can probably be removed after next qt3 release.
--- src/mypasswordsafe.ui.orig 2004-12-06 17:03:46.000000000 +0100
+++ src/mypasswordsafe.ui
@@ -1006,6 +1006,5 @@
<pixmapinproject/>
<layoutdefaults spacing="6" margin="11"/>
<includehints>
- <includehint>safelistview.hpp</includehint>
</includehints>
</UI>
+25
View File
@@ -0,0 +1,25 @@
$NetBSD: patch-ad,v 1.2 2012/03/02 15:07:16 hans Exp $
--- src/myendian.h.orig 2006-01-19 23:32:41.000000000 +0000
+++ src/myendian.h
@@ -8,10 +8,19 @@
# define BYTE_ORDER LITTLE_ENDIAN
# endif
#else
-# ifdef __NetBSD__
+# if defined(__DragonFly__) || defined(__NetBSD__)
# include <sys/endian.h>
# elif __APPLE__
# include <ppc/endian.h>
+# elif __sun
+# include <sys/byteorder.h>
+# define LITTLE_ENDIAN 1234
+# define BIG_ENDIAN 4321
+# ifdef _BIG_ENDIAN
+# define BYTE_ORDER BIG_ENDIAN
+# else
+# define BYTE_ORDER LITTLE_ENDIAN
+# endif
# else
# include <endian.h>
# endif
+13
View File
@@ -0,0 +1,13 @@
$NetBSD: patch-ae,v 1.1 2011/08/02 17:09:21 joerg Exp $
--- src/safe.hpp.orig 2011-08-02 13:39:15.000000000 +0000
+++ src/safe.hpp
@@ -129,7 +129,7 @@ public:
SafeEntry(SafeGroup *parent);
SafeEntry(SafeGroup *parent,
const QString &n, const QString &u,
- const EncryptedString &p, const QString &n);
+ const EncryptedString &p, const QString &m);
SafeEntry(const SafeEntry &item);
~SafeEntry();
@@ -0,0 +1,12 @@
$NetBSD: patch-src-crypto-bfproxy.cpp,v 1.1 2011/11/22 20:05:25 joerg Exp $
--- src/crypto/bfproxy.cpp.orig 2011-11-22 19:21:27.000000000 +0000
+++ src/crypto/bfproxy.cpp
@@ -17,6 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "bfproxy.hpp"
+#include <string.h>
BFProxy::BFProxy(const unsigned char *key, int len)
{
@@ -0,0 +1,13 @@
$NetBSD: patch-src-encryptedstring.cpp,v 1.1 2011/11/22 20:05:25 joerg Exp $
--- src/encryptedstring.cpp.orig 2011-11-22 19:06:44.000000000 +0000
+++ src/encryptedstring.cpp
@@ -15,6 +15,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#include <stdlib.h>
+#include <string.h>
#include <time.h>
#include <iostream>
#include "pwsafe/Util.h"
@@ -0,0 +1,15 @@
$NetBSD: patch-src-pwsafe-Util.cpp,v 1.1 2011/11/22 20:05:25 joerg Exp $
--- src/pwsafe/Util.cpp.orig 2011-11-22 19:15:04.000000000 +0000
+++ src/pwsafe/Util.cpp
@@ -5,7 +5,10 @@
#include "PW_BlowFish.h"
//#include "PwsPlatform.h"
+#include <limits.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include <iostream>
using std::cout;
using std::endl;
@@ -0,0 +1,12 @@
$NetBSD: patch-src-safeserializer.cpp,v 1.1 2011/11/22 20:05:25 joerg Exp $
--- src/safeserializer.cpp.orig 2011-11-22 18:59:13.000000000 +0000
+++ src/safeserializer.cpp
@@ -17,6 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <qstring.h>
+#include <algorithm>
#include "safe.hpp"
#include "safeserializer.hpp"
#include "plaintextlizer.hpp"
@@ -0,0 +1,12 @@
$NetBSD: patch-src_xmlserializer.hpp,v 1.1 2013/03/28 21:43:11 joerg Exp $
--- src/xmlserializer.hpp.orig 2013-03-27 10:08:42.000000000 +0000
+++ src/xmlserializer.hpp
@@ -22,7 +22,6 @@
#include "safeserializer.hpp"
class Safe;
-enum Safe::Error;
class EncryptedString;
class SecuredString;
+13
View File
@@ -0,0 +1,13 @@
PAM provides Pluggable Authentication Modules. It is a flexible,
dynamically configurable mechanism for authenticating users.
PAM provides a way to develop programs that are independent of
authentication scheme. These programs need "authentication modules" to be
attached to them at run-time in order to work. Which authentication module
is to be attached is dependent upon the local system setup and is at the
discretion of the local system administrator.
This package includes the dynamic and static libpam libraries,
developer files, and related programmer's man pages documenting
the functions. Over 25 PAM modules are included. This is Linux-PAM;
it works with Solaris, NetBSD, AIX, and other operating systems.
+9
View File
@@ -0,0 +1,9 @@
===========================================================================
$NetBSD: MESSAGE,v 1.1 2004/01/08 19:18:00 jlam Exp $
${PKGNAME} will use the following directory as the default
location of its plugin modules:
${PAM_MODULEDIR}
===========================================================================
+118
View File
@@ -0,0 +1,118 @@
# $NetBSD: Makefile,v 1.49 2013/04/06 13:24:19 rodent Exp $
DISTNAME= Linux-PAM-0.77
PKGNAME= ${DISTNAME:S/Linux-//}
PKGREVISION= 6
CATEGORIES= security
MASTER_SITES= http://www.kernel.org/pub/linux/libs/pam/pre/library/ \
ftp://ftp.kernel.org/pub/linux/libs/pam/pre/library/ \
http://www.de.kernel.org/pub/linux/libs/pam/pre/library/ \
ftp://ftp.jp.kernel.org/pub/linux/libs/pam/pre/library/
MAINTAINER= rh@NetBSD.org
HOMEPAGE= http://www.kernel.org/pub/linux/libs/pam/
COMMENT= Pluggable Authentication Modules (PAM)
MAKE_JOBS_SAFE= no
CONFLICTS+= openpam-[0-9]*
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_TOOLS+= gmake
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-docdir=${PREFIX}/share/doc/PAM
CONFIGURE_ARGS+= --enable-includedir=${PREFIX}/include
CONFIGURE_ARGS+= --enable-mandir=${PREFIX}/${PKGMANDIR}
CONFIGURE_ARGS+= --enable-sconfigdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+= --enable-static-libpam
CONFIGURE_ENV+= ac_cv_prog_HAVE_SGML2TXT=no
CONFIGURE_ENV+= ac_cv_prog_HAVE_SGML2HTML=no
CONFIGURE_ENV+= ac_cv_prog_HAVE_SGML2LATEX=no
CONFIGURE_ENV+= ac_cv_prog_HAVE_SGML2PS=no
CONFIGURE_ENV+= ac_cv_prog_HAVE_PS2PDF=no
MAKE_FLAGS+= CC=cc
INSTALL_MAKE_FLAGS+= FAKEROOT=${DESTDIR}
PAM_MODULEDIR= ${VIEWBASE}/lib/security
MAKE_ENV+= PAM_MODULEDIR=${PAM_MODULEDIR:Q}
MESSAGE_SUBST+= PAM_MODULEDIR=${PAM_MODULEDIR}
.include "../../mk/bsd.prefs.mk"
PKG_OPTIONS_VAR= PKG_OPTIONS.PAM
PKG_SUPPORTED_OPTIONS= libcrack
.include "../../mk/bsd.options.mk"
###
### Support using libcrack to protect against weak passwords.
###
PLIST_VARS+= libcrack
.if !empty(PKG_OPTIONS:Mlibcrack)
. include "../../security/libcrack/buildlink3.mk"
PLIST.libcrack= yes
.else
CONFIGURE_ARGS+= --disable-crack
.endif
.if !empty(OPSYS:M*BSD)
CPPFLAGS+= -DUSE_GETLOGIN=1
.endif
# pam_userdb uses ndbm if it finds it, otherwise it will use Berkeley DB.
.if !exists(/usr/include/ndbm.h)
. include "../../mk/bdb.buildlink3.mk"
.endif
PKG_SYSCONFSUBDIR?= pam
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
CFILES= access.conf pam_env.conf group.conf time.conf
PLIST_VARS+= limits
.if ${OPSYS} == "Linux"
CFILES+= limits.conf
PLIST.limits= yes
.endif
CONF_FILES= ${EGDIR}/pam.conf ${PKG_SYSCONFBASEDIR}/pam.conf
.for file in ${CFILES}
CONF_FILES+= ${EGDIR}/${file} ${PKG_SYSCONFDIR}/${file}
.endfor
SPECIAL_PERMS= ${PREFIX}/sbin/unix_chkpwd ${SETUID_ROOT_PERMS}
post-configure:
cd ${WRKSRC}; for file in Make.Rules; do \
${SED} -e "s|@LIBTOOL@|${LIBTOOL}|g" \
-e "s|@SHLIBTOOL@|${SHLIBTOOL}|g" \
$$file > $$file.new; \
${MV} -f $$file.new $$file; \
done
cd ${WRKSRC}; for file in libpam/pam_private.h; do \
${SED} -e "s|/etc/|${PKG_SYSCONFBASEDIR}/|g" \
$$file > $$file.new; \
${MV} -f $$file.new $$file; \
done
# this is so it won't try to interactively install any configs
pre-build:
${TOUCH} ${WRKSRC}/.quiet_install
post-install:
${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${WRKSRC}/conf/pam.conf ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${WRKSRC}/modules/pam_access/access.conf ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${WRKSRC}/modules/pam_env/pam_env.conf-example \
${DESTDIR}${EGDIR}/pam_env.conf
${INSTALL_DATA} ${WRKSRC}/modules/pam_group/group.conf ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${WRKSRC}/modules/pam_time/time.conf ${DESTDIR}${EGDIR}
.if ${OPSYS} == "Linux"
${INSTALL_DATA} ${WRKSRC}/security/modules/pam_limits/limits.skel \
${DESTDIR}${EGDIR}/limits.conf
.endif
.include "../../mk/bsd.pkg.mk"
+68
View File
@@ -0,0 +1,68 @@
@comment $NetBSD: PLIST,v 1.8 2009/06/14 18:13:26 joerg Exp $
include/security/_pam_aconf.h
include/security/_pam_compat.h
include/security/_pam_macros.h
include/security/_pam_types.h
include/security/pam_appl.h
include/security/pam_client.h
include/security/pam_filter.h
include/security/pam_misc.h
include/security/pam_modules.h
lib/libpam.la
lib/libpam_misc.la
lib/libpamc.la
lib/security/pam_access.la
${PLIST.libcrack}lib/security/pam_cracklib.la
lib/security/pam_debug.la
lib/security/pam_deny.la
lib/security/pam_env.la
lib/security/pam_filter.la
lib/security/pam_filter/upperLOWER
lib/security/pam_ftp.la
lib/security/pam_group.la
lib/security/pam_issue.la
lib/security/pam_lastlog.la
${PLIST.limits}lib/security/pam_limits.la
lib/security/pam_listfile.la
lib/security/pam_mail.la
lib/security/pam_mkhomedir.la
lib/security/pam_motd.la
lib/security/pam_nologin.la
lib/security/pam_permit.la
lib/security/pam_rhosts_auth.la
lib/security/pam_rootok.la
lib/security/pam_securetty.la
lib/security/pam_shells.la
lib/security/pam_stress.la
lib/security/pam_tally.la
lib/security/pam_time.la
lib/security/pam_unix.la
lib/security/pam_unix_acct.so
lib/security/pam_unix_auth.so
lib/security/pam_unix_passwd.so
lib/security/pam_unix_session.so
lib/security/pam_userdb.la
lib/security/pam_warn.la
lib/security/pam_wheel.la
man/man3/pam_authenticate.3
man/man3/pam_chauthtok.3
man/man3/pam_close_session.3
man/man3/pam_end.3
man/man3/pam_fail_delay.3
man/man3/pam_get_item.3
man/man3/pam_open_session.3
man/man3/pam_set_item.3
man/man3/pam_setcred.3
man/man3/pam_start.3
man/man3/pam_strerror.3
man/man8/pam.8
man/man8/pam.conf.8
man/man8/pam.d.8
sbin/pam_tally
sbin/unix_chkpwd
share/examples/${PKGBASE}/access.conf
share/examples/${PKGBASE}/group.conf
${PLIST.limits}share/examples/${PKGBASE}/limits.conf
share/examples/${PKGBASE}/pam.conf
share/examples/${PKGBASE}/pam_env.conf
share/examples/${PKGBASE}/time.conf
+15
View File
@@ -0,0 +1,15 @@
# $NetBSD: buildlink3.mk,v 1.25 2009/03/20 19:25:16 joerg Exp $
BUILDLINK_TREE+= linux-pam
.if !defined(LINUX_PAM_BUILDLINK3_MK)
LINUX_PAM_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.linux-pam+= PAM>=0.75
BUILDLINK_ABI_DEPENDS.linux-pam+= PAM>=0.77nb5
BUILDLINK_PKGSRCDIR.linux-pam?= ../../security/PAM
.include "../../mk/dlopen.buildlink3.mk"
.endif # LINUX_PAM_BUILDLINK3_MK
BUILDLINK_TREE+= -linux-pam
+74
View File
@@ -0,0 +1,74 @@
# $NetBSD: builtin.mk,v 1.14 2006/04/06 06:22:37 reed Exp $
BUILTIN_PKG:= linux-pam
BUILTIN_FIND_FILES_VAR:= H_LINUX_PAM
BUILTIN_FIND_FILES.H_LINUX_PAM= /usr/include/security/pam_appl.h \
/usr/include/pam/pam_appl.h
BUILTIN_FIND_GREP.H_LINUX_PAM= The Linux-PAM Framework layer API
.include "../../mk/buildlink3/bsd.builtin.mk"
###
### Determine if there is a built-in implementation of the package and
### set IS_BUILTIN.<pkg> appropriately ("yes" or "no").
###
.if !defined(IS_BUILTIN.linux-pam)
IS_BUILTIN.linux-pam= no
. if empty(H_LINUX_PAM:M__nonexistent__) && empty(H_LINUX_PAM:M${LOCALBASE}/*)
IS_BUILTIN.linux-pam= yes
. endif
.endif
MAKEVARS+= IS_BUILTIN.linux-pam
###
### Determine whether we should use the built-in implementation if it
### exists, and set USE_BUILTIN.<pkg> appropriate ("yes" or "no").
###
.if !defined(USE_BUILTIN.linux-pam)
. if ${PREFER.linux-pam} == "pkgsrc"
USE_BUILTIN.linux-pam= no
. else
USE_BUILTIN.linux-pam= ${IS_BUILTIN.linux-pam}
. if defined(BUILTIN_PKG.linux-pam) && \
!empty(IS_BUILTIN.linux-pam:M[yY][eE][sS])
USE_BUILTIN.linux-pam= yes
. for _dep_ in ${BUILDLINK_API_DEPENDS.linux-pam}
. if !empty(USE_BUILTIN.linux-pam:M[yY][eE][sS])
USE_BUILTIN.linux-pam!= \
if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.linux-pam:Q}; then \
${ECHO} yes; \
else \
${ECHO} no; \
fi
. endif
. endfor
. endif
. endif # PREFER.linux-pam
.endif
MAKEVARS+= USE_BUILTIN.linux-pam
###
### The section below only applies if we are not including this file
### solely to determine whether a built-in implementation exists.
###
CHECK_BUILTIN.linux-pam?= no
.if !empty(CHECK_BUILTIN.linux-pam:M[nN][oO])
. if !empty(USE_BUILTIN.linux-pam:M[yY][eE][sS])
BUILDLINK_TARGETS+= buildlink-pam-security
. endif
. if !target(buildlink-pam-security)
.PHONY: buildlink-pam-security
buildlink-pam-security:
${_PKG_SILENT}${_PKG_DEBUG} \
src=${BUILDLINK_PREFIX.linux-pam:Q}"/include/pam"; \
dest=${BUILDLINK_DIR:Q}"/include/security"; \
if ${TEST} -d "$$src"; then \
${RM} -fr "$$dest"; \
${LN} -fs "$$src" "$$dest"; \
fi
. endif
.endif # CHECK_BUILTIN.linux-pam
+31
View File
@@ -0,0 +1,31 @@
$NetBSD: distinfo,v 1.17 2010/02/02 17:09:28 tnn Exp $
SHA1 (Linux-PAM-0.77.tar.gz) = 58dff29aec3c0b6a9e9b53af6fb643056ce0f304
RMD160 (Linux-PAM-0.77.tar.gz) = 15391ed7bed7b506bb391608b735332d0391580c
Size (Linux-PAM-0.77.tar.gz) = 442569 bytes
SHA1 (patch-aa) = 99f4889c24ff71a9e40e0e913d6071b78a326877
SHA1 (patch-ab) = 8f0ba8b8390a67ffc9a7cf0ea33522e3e5603428
SHA1 (patch-ac) = 4b956ff74eae3b61c3f33699087666f64fe7f467
SHA1 (patch-ad) = 9604689a4ab826cc31db29119012c473c876b286
SHA1 (patch-ae) = 2d403c3737005f034624458730562ff094e04ed6
SHA1 (patch-af) = 303f272464f8bb90b934428b99ce50d92ddd0b3c
SHA1 (patch-ag) = 5b33842c46fa251b493ad554199b084980de7923
SHA1 (patch-ah) = 50f68734e5b879db823e137f474b40d8473f0e6e
SHA1 (patch-ai) = 950c9e949c72eaf904452d8afefc0f994101e5a8
SHA1 (patch-aj) = d47bc58c3dc810497290d6ec4a3646380b5fa4d7
SHA1 (patch-ak) = 491aa837ee756269d57d642aeba999d1f8cc8187
SHA1 (patch-al) = 29c9ca136655d49d739d3c4dc664af9f0b1a5fa8
SHA1 (patch-am) = 9cf69342d0c6665ff6d9eebec35d6c3898854c8a
SHA1 (patch-an) = 46e85fc6db95eda99ed664e7d4282a49d95437c4
SHA1 (patch-ao) = da8c42c2afa2c66fee4e8f453970d1a4b3a0f285
SHA1 (patch-ap) = 0a923b67a909dde6f72129b0c853088f9d48bd91
SHA1 (patch-aq) = 91587c5b9c6587221708247decb0e82f665ae2bf
SHA1 (patch-ar) = b8072ebbc1a38c26d44c0e087a2b8b93f1eb7768
SHA1 (patch-as) = e4fdfef53c097985c2aa8ff8225fed1caa812c10
SHA1 (patch-at) = 5ac29da5019df10beae09874ef61559f16097a7b
SHA1 (patch-au) = 6c1327faf2ec9f1ff74f01443075852bf94f3788
SHA1 (patch-av) = 98c7b6ea2ba655cb405492eddba2f9d246b08817
SHA1 (patch-aw) = fc7ed36cd8fb67058e52a9ccf5474498086db893
SHA1 (patch-ax) = 16f4ef37306f05a9792684440a802bed727b03df
SHA1 (patch-ay) = 8e40db2360bec88a22cd661c813f4a7f9a906f34
SHA1 (patch-az) = 4083bdfc19ee7d528a27fce0339b666c58f73583
+15
View File
@@ -0,0 +1,15 @@
# $NetBSD: module.mk,v 1.5 2005/03/24 22:42:58 jlam Exp $
.if !defined(PAM_MODULE_MK)
PAM_MODULE_MK= # defined
.include "../../mk/pam.buildlink3.mk"
.if defined(DEFAULT_VIEW.${PAM_TYPE})
DEFAULT_VIEW.${PKGBASE}= ${DEFAULT_VIEW.${PAM_TYPE}}
.endif
PAM_MODULEDIR= ${VIEWBASE}/lib/security
PAM_INSTMODULEDIR= ${PREFIX}/${PAM_MODULEDIR:S,${VIEWBASE}/,,}
.endif # PAM_MODULE_MK
+21
View File
@@ -0,0 +1,21 @@
$NetBSD: patch-aa,v 1.4 2002/12/23 21:23:58 jlam Exp $
--- _pam_aconf.h.in.orig Sun Nov 25 22:04:46 2001
+++ _pam_aconf.h.in
@@ -28,6 +28,16 @@
# include <features.h>
#endif /* HAVE_FEATURES_H */
+/* we have <utmp.h> */
+#undef HAVE_UTMP_H
+
+/* we have <termios.h> */
+#undef HAVE_TERMIOS_H
+
+/* we have Linux shadow passwords */
+#undef HAVE_SHADOW_H
+#undef HAVE_GETSPNAM
+
/* we have libcrack available */
#undef HAVE_LIBCRACK
+65
View File
@@ -0,0 +1,65 @@
$NetBSD: patch-ab,v 1.6 2007/07/09 03:51:33 minskim Exp $
--- configure.in.orig 2002-07-08 23:17:13.000000000 -0700
+++ configure.in
@@ -157,6 +157,10 @@ AC_ARG_ENABLE(lckpwdf,
WITH_LCKPWDF=no, WITH_LCKPWDF=yes)
AC_SUBST(WITH_LCKPWDF)
+AC_ARG_ENABLE(crack,
+[ --disable-crack do not use crack],
+ WITH_CRACK=no, WITH_CRACK=yes)
+
AC_CHECK_HEADERS(paths.h)
AC_ARG_WITH(mailspool,
[ --with-mailspool path to mail spool directory
@@ -195,11 +199,15 @@ dnl
dnl At least on Solaris, the existing libcrack must be dynamic.
dnl Ought to introduce a check for this.
dnl
+if test "$WITH_CRACK" = "yes"; then
AC_CHECK_LIB(crack, FascistCheck, HAVE_LIBCRACK=yes ; AC_DEFINE(HAVE_LIBCRACK),
HAVE_LIBCRACK=no)
+else
+HAVE_LIBCRACK=no
+fi
AC_SUBST(HAVE_LIBCRACK)
-AC_CHECK_LIB(crypt, fcrypt, HAVE_LIBCRYPT=yes ; AC_DEFINE(HAVE_LIBCRYPT),
+AC_CHECK_LIB(crypt, crypt, HAVE_LIBCRYPT=yes ; AC_DEFINE(HAVE_LIBCRYPT),
HAVE_LIBCRYPT=no)
AC_SUBST(HAVE_LIBCRYPT)
AC_CHECK_LIB(util, logwtmp, HAVE_LIBUTIL=yes ; AC_DEFINE(HAVE_LIBUTIL),
@@ -215,6 +223,9 @@ if test x$HAVE_LIBDB != xyes ; then
HAVE_LIBDB=no)
fi
AC_SUBST(HAVE_LIBDB)
+AC_CHECK_LIB(db4, db_create, HAVE_LIBDB4=yes ; AC_DEFINE(HAVE_LIBDB4),
+ HAVE_LIBDB4=no)
+AC_SUBST(HAVE_LIBDB4)
AC_CHECK_LIB(fl, yylex, yyterminate, HAVE_LIBFL=yes ; AC_DEFINE(HAVE_LIBFL),
HAVE_LIBFL=no)
AC_SUBST(HAVE_LIBFL)
@@ -240,6 +251,13 @@ AC_CHECK_HEADERS(fcntl.h limits.h malloc
dnl Linux wants features.h in some of the source files.
AC_CHECK_HEADERS(features.h)
+dnl For module/pam_filter
+AC_CHECK_HEADERS(termios.h)
+
+dnl For module/pam_unix
+AC_CHECK_HEADERS(shadow.h)
+AC_CHECK_FUNCS(getspnam)
+
dnl For module/pam_cracklib
AC_CHECK_HEADERS(crypt.h)
@@ -257,7 +275,7 @@ dnl being found.
dnl Look for cracklib dictionary
AC_MSG_CHECKING(path to cracklib dictionary)
-DICT_DIR_CANDIDATES="/usr/lib /usr/share/dict /usr/share/lib \
+DICT_DIR_CANDIDATES="${prefix}/libdata /usr/lib /usr/share/dict /usr/share/lib \
/usr/local/lib /usr/local/share/lib"
DICT_FILE_CANDIDATES="pw_dict cracklib_dict"
CRACKLIB_DICTPATH=""
+296
View File
@@ -0,0 +1,296 @@
$NetBSD: patch-ac,v 1.6 2007/07/09 03:51:33 minskim Exp $
--- configure.orig 2002-07-08 23:17:13.000000000 -0700
+++ configure
@@ -47,6 +47,8 @@ ac_help="$ac_help
ac_help="$ac_help
--disable-lckpwdf do not use the lckpwdf function"
ac_help="$ac_help
+ --disable-crack do not use crack"
+ac_help="$ac_help
--with-mailspool path to mail spool directory
[default _PATH_MAILDIR if defined in paths.h, otherwise /var/spool/mail]"
@@ -1170,8 +1172,17 @@ fi
+# Check whether --enable-crack or --disable-crack was given.
+if test "${enable_crack+set}" = set; then
+ enableval="$enable_crack"
+ WITH_CRACK=no
+else
+ WITH_CRACK=yes
+fi
+
+
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
-echo "configure:1175: checking how to run the C preprocessor" >&5
+echo "configure:1186: checking how to run the C preprocessor" >&5
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
@@ -1461,8 +1472,9 @@ fi
+if test "$WITH_CRACK" = "yes"; then
echo $ac_n "checking for FascistCheck in -lcrack""... $ac_c" 1>&6
-echo "configure:1466: checking for FascistCheck in -lcrack" >&5
+echo "configure:1478: checking for FascistCheck in -lcrack" >&5
ac_lib_var=`echo crack'_'FascistCheck | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -1505,11 +1517,14 @@ else
HAVE_LIBCRACK=no
fi
+else
+HAVE_LIBCRACK=no
+fi
-echo $ac_n "checking for fcrypt in -lcrypt""... $ac_c" 1>&6
-echo "configure:1512: checking for fcrypt in -lcrypt" >&5
-ac_lib_var=`echo crypt'_'fcrypt | sed 'y%./+-%__p_%'`
+echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
+echo "configure:1527: checking for crypt in -lcrypt" >&5
+ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -1521,13 +1536,13 @@ cat > conftest.$ac_ext <<EOF
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char fcrypt();
+char crypt();
int main() {
-fcrypt()
+crypt()
; return 0; }
EOF
-if { (eval echo configure:1531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -1733,8 +1748,53 @@ fi
fi
+echo $ac_n "checking for db_create in -ldb4""... $ac_c" 1>&6
+echo "configure:1753: checking for db_create in -ldb4" >&5
+ac_lib_var=`echo db4'_'db_create | sed 'y%./+-%__p_%'`
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ ac_save_LIBS="$LIBS"
+LIBS="-ldb4 $LIBS"
+cat > conftest.$ac_ext <<EOF
+#line 1761 "configure"
+#include "confdefs.h"
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char db_create();
+
+int main() {
+db_create()
+; return 0; }
+EOF
+if { (eval echo configure:1772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=yes"
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=no"
+fi
+rm -f conftest*
+LIBS="$ac_save_LIBS"
+
+fi
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ HAVE_LIBDB4=yes ; cat >> confdefs.h <<\EOF
+#define HAVE_LIBDB4 1
+EOF
+
+else
+ echo "$ac_t""no" 1>&6
+HAVE_LIBDB4=no
+fi
+
+
echo $ac_n "checking for yylex in -lfl""... $ac_c" 1>&6
-echo "configure:1738: checking for yylex in -lfl" >&5
+echo "configure:1798: checking for yylex in -lfl" >&5
ac_lib_var=`echo fl'_'yylex | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -2312,6 +2372,143 @@ fi
done
+for ac_hdr in termios.h
+do
+ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+echo "configure:2380: checking for $ac_hdr" >&5
+if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat > conftest.$ac_ext <<EOF
+#line 2385 "configure"
+#include "confdefs.h"
+#include <$ac_hdr>
+EOF
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+{ (eval echo configure:2390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+if test -z "$ac_err"; then
+ rm -rf conftest*
+ eval "ac_cv_header_$ac_safe=yes"
+else
+ echo "$ac_err" >&5
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ eval "ac_cv_header_$ac_safe=no"
+fi
+rm -f conftest*
+fi
+if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ cat >> confdefs.h <<EOF
+#define $ac_tr_hdr 1
+EOF
+
+else
+ echo "$ac_t""no" 1>&6
+fi
+done
+
+
+for ac_hdr in shadow.h
+do
+ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+echo "configure:2421: checking for $ac_hdr" >&5
+if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat > conftest.$ac_ext <<EOF
+#line 2426 "configure"
+#include "confdefs.h"
+#include <$ac_hdr>
+EOF
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+{ (eval echo configure:2431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+if test -z "$ac_err"; then
+ rm -rf conftest*
+ eval "ac_cv_header_$ac_safe=yes"
+else
+ echo "$ac_err" >&5
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ eval "ac_cv_header_$ac_safe=no"
+fi
+rm -f conftest*
+fi
+if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ cat >> confdefs.h <<EOF
+#define $ac_tr_hdr 1
+EOF
+
+else
+ echo "$ac_t""no" 1>&6
+fi
+done
+
+for ac_func in getspnam
+do
+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+echo "configure:2460: checking for $ac_func" >&5
+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat > conftest.$ac_ext <<EOF
+#line 2465 "configure"
+#include "confdefs.h"
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func(); below. */
+#include <assert.h>
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char $ac_func();
+
+int main() {
+
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+choke me
+#else
+$ac_func();
+#endif
+
+; return 0; }
+EOF
+if { (eval echo configure:2488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_func_$ac_func=yes"
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ eval "ac_cv_func_$ac_func=no"
+fi
+rm -f conftest*
+fi
+
+if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ cat >> confdefs.h <<EOF
+#define $ac_tr_func 1
+EOF
+
+else
+ echo "$ac_t""no" 1>&6
+fi
+done
+
+
for ac_hdr in crypt.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
@@ -2439,8 +2636,8 @@ done
echo $ac_n "checking path to cracklib dictionary""... $ac_c" 1>&6
-echo "configure:2443: checking path to cracklib dictionary" >&5
-DICT_DIR_CANDIDATES="/usr/lib /usr/share/dict /usr/share/lib \
+echo "configure:2640: checking path to cracklib dictionary" >&5
+DICT_DIR_CANDIDATES="${prefix}/libdata /usr/lib /usr/share/dict /usr/share/lib \
/usr/local/lib /usr/local/share/lib"
DICT_FILE_CANDIDATES="pw_dict cracklib_dict"
CRACKLIB_DICTPATH=""
@@ -3646,6 +3843,7 @@ s%@HAVE_LIBCRYPT@%$HAVE_LIBCRYPT%g
s%@HAVE_LIBUTIL@%$HAVE_LIBUTIL%g
s%@HAVE_LIBNDBM@%$HAVE_LIBNDBM%g
s%@HAVE_LIBDB@%$HAVE_LIBDB%g
+s%@HAVE_LIBDB4@%$HAVE_LIBDB4%g
s%@HAVE_LIBFL@%$HAVE_LIBFL%g
s%@HAVE_LIBNSL@%$HAVE_LIBNSL%g
s%@HAVE_LIBPWDB@%$HAVE_LIBPWDB%g
+152
View File
@@ -0,0 +1,152 @@
$NetBSD: patch-ad,v 1.7 2010/02/02 17:09:28 tnn Exp $
--- libpam/Makefile.orig 2001-12-09 21:44:58.000000000 +0000
+++ libpam/Makefile
@@ -6,7 +6,7 @@
include ../Make.Rules
# need to tell libpam about the default directory for PAMs
-MOREFLAGS=-D"DEFAULT_MODULE_PATH=\"$(SECUREDIR)/\""
+MOREFLAGS=-D"DEFAULT_MODULE_PATH=\"$(PAM_MODULEDIR)/\""
ifeq ($(WITH_LIBDEBUG),yes)
LIBNAME=libpamd
@@ -22,7 +22,7 @@ dummy: ../Make.Rules all
# ---------------------------------------------
-CFLAGS += $(DYNAMIC) $(STATIC) $(MOREFLAGS) \
+CFLAGS += $(DYNAMIC) $(STATIC) $(LTCFLAGS) $(MOREFLAGS) \
-DLIBPAM_VERSION_MAJOR=$(MAJOR_REL) \
-DLIBPAM_VERSION_MINOR=$(MINOR_REL)
@@ -36,6 +36,10 @@ LIBPAMFULL = $(LIBPAMNAME)$(MODIFICATION
LIBPAMSTATIC = $(LIBNAME).a
+# libtool library name
+
+LIBPAMLIBTOOL = $(LIBNAME).la
+
ifdef STATIC
@echo Did you mean to set STATIC\?
MODULES = $(shell cat ../modules/_static_module_objects)
@@ -56,7 +60,7 @@ LIBOBJECTS = pam_item.o pam_strerror.o p
ifeq ($(DYNAMIC_LIBPAM),yes)
# libpam.so needs -ldl, too.
DLIBOBJECTS = $(addprefix dynamic/,$(LIBOBJECTS) $(STATICOBJ))
-ifeq ($(STATICOBJ),yes)
+ifdef STATICOBJ
dynamic/pam_static.o: pam_static.c ../modules/_static_module_objects
$(CC) $(CFLAGS) -c pam_static.c -o $@
endif
@@ -70,10 +74,28 @@ static/pam_static.o: pam_static.c ../mod
endif
endif
+ifeq ($(LIBTOOL_LIBPAM),yes)
+LALIBOBJECTS = $(LIBOBJECTS:.o=.lo) $(STATICOBJ:.o=.lo)
+ifdef STATICOBJ
+pam_static.lo: pam_static.c ../modules/_static_module_objects
+ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(CFLAGS) -c pam_static.c
+endif
+endif
+
# ---------------------------------------------
## rules
-all: dirs $(LIBPAM) $(LIBPAMSTATIC) ../Make.Rules
+ifeq ($(DYNAMIC_LIBPAM),yes)
+LIBS_TO_BUILD+= $(LIBPAM)
+endif
+ifeq ($(STATIC_LIBPAM),yes)
+LIBS_TO_BUILD+= $(LIBPAMSTATIC)
+endif
+ifeq ($(LIBTOOL_LIBPAM),yes)
+LIBS_TO_BUILD+= $(LIBPAMLIBTOOL)
+endif
+
+all: dirs $(LIBS_TO_BUILD) ../Make.Rules
dirs:
ifeq ($(DYNAMIC_LIBPAM),yes)
@@ -89,6 +111,9 @@ dynamic/%.o : %.c
static/%.o : %.c
$(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
+%.lo : %.c
+ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $<
+
$(LIBPAM): $(DLIBOBJECTS)
ifeq ($(DYNAMIC_LIBPAM),yes)
ifeq ($(USESONAME),yes)
@@ -111,7 +136,26 @@ ifeq ($(STATIC_LIBPAM),yes)
$(RANLIB) $@
endif
-install: all
+$(LIBPAMLIBTOOL): $(LALIBOBJECTS)
+ifeq ($(LIBTOOL_LIBPAM),yes)
+ $(LIBTOOL) --tag=CC --mode=link $(CC) $(LDFLAGS) $(LALIBOBJECTS) -o $@ \
+ $(MODULES) $(LINKLIBS) \
+ -rpath $(libdir) -version-info $(MAJOR_REL):$(MINOR_REL)
+endif
+
+install: all install-headers
+
+ifeq ($(DYNAMIC_LIBPAM),yes)
+install: install-dynamic
+endif
+ifeq ($(STATIC_LIBPAM),yes)
+install: install-static
+endif
+ifeq ($(LIBTOOL_LIBPAM),yes)
+install: install-libtool
+endif
+
+install-headers:
$(MKDIR) $(FAKEROOT)$(INCLUDED) $(FAKEROOT)$(libdir)
$(INSTALL) -m 644 include/security/pam_appl.h $(FAKEROOT)$(INCLUDED)
$(INSTALL) -m 644 include/security/pam_modules.h $(FAKEROOT)$(INCLUDED)
@@ -121,6 +165,8 @@ install: all
ifdef MEMORY_DEBUG
$(INSTALL) -m 644 include/security/pam_malloc.h $(FAKEROOT)$(INCLUDED)
endif
+
+install-dynamic:
ifeq ($(DYNAMIC_LIBPAM),yes)
$(INSTALL) -m $(SHLIBMODE) $(LIBPAM) $(FAKEROOT)$(libdir)/$(LIBPAMFULL)
$(LDCONFIG)
@@ -129,10 +175,17 @@ ifeq ($(DYNAMIC_LIBPAM),yes)
ln -sf $(LIBPAMNAME) $(LIBPAM) )
endif
endif
+
+install-static:
ifeq ($(STATIC_LIBPAM),yes)
$(INSTALL) -m 644 $(LIBPAMSTATIC) $(FAKEROOT)$(libdir)
endif
+install-libtool:
+ifeq ($(LIBTOOL_LIBPAM),yes)
+ $(LIBTOOL) --mode=install $(INSTALL) -c $(LIBPAMLIBTOOL) $(FAKEROOT)$(libdir)
+endif
+
remove:
rm -f $(FAKEROOT)$(INCLUDED)/_pam_types.h
rm -f $(FAKEROOT)$(INCLUDED)/_pam_macros.h
@@ -143,9 +196,13 @@ remove:
rm -f $(FAKEROOT)$(libdir)/$(LIBPAM)
$(LDCONFIG)
rm -f $(FAKEROOT)$(libdir)/$(LIBPAMSTATIC)
+ifeq ($(LIBTOOL_LIBPAM),yes)
+ $(LIBTOOL) --mode=uninstall rm $(FAKEROOT)$(libdir)$(LIBPAMLIBTOOL)
+endif
clean:
rm -f a.out core *~ static/*.o dynamic/*.o
- rm -f *.a *.o *.so ./include/security/*~
+ rm -f *.a *.la *.lo *.o *.so .libs/* ./include/security/*~
if [ -d dynamic ]; then rmdir dynamic ; fi
if [ -d static ]; then rmdir static ; fi
+ if [ -d .libs ]; then rmdir .libs ; fi
+130
View File
@@ -0,0 +1,130 @@
$NetBSD: patch-ae,v 1.7 2010/02/02 17:09:28 tnn Exp $
--- libpam_misc/Makefile.orig 2002-06-27 04:04:54.000000000 +0000
+++ libpam_misc/Makefile
@@ -15,8 +15,13 @@ endif
VERSION=.$(MAJOR_REL)
MODIFICATION=.$(MINOR_REL)
-CFLAGS += $(MOREFLAGS) $(DYNAMIC) $(STATIC)
+CFLAGS += $(MOREFLAGS) $(DYNAMIC) $(STATIC) $(LTCFLAGS)
+ifeq ($(DYNAMIC_LIBPAM),yes)
LINKLIBS += -L$(absolute_objdir)/libpam -lpam
+endif
+ifeq ($(LIBTOOL_LIBPAM),yes)
+LINKLIBS += $(absolute_objdir)/libpam/libpam.la
+endif
# dynamic library names
@@ -28,6 +33,10 @@ LIBNAMEDFULL = $(LIBNAMEDNAME)$(MODIFICA
LIBNAMEDSTATIC = $(LIBNAME).a
+# libtool library name
+
+LIBNAMEDLIBTOOL = $(LIBNAME).la
+
LIBOBJECTS = help_env.o misc_conv.o
ifeq ($(DYNAMIC_LIBPAM),yes)
@@ -38,10 +47,24 @@ ifeq ($(STATIC_LIBPAM),yes)
SLIBOBJECTS = $(addprefix static/,$(LIBOBJECTS))
endif
+ifeq ($(LIBTOOL_LIBPAM),yes)
+LALIBOBJECTS = $(LIBOBJECTS:.o=.lo)
+endif
+
# ---------------------------------------------
## rules
-all: dirs $(LIBNAMED) $(LIBNAMEDSTATIC)
+ifeq ($(DYNAMIC_LIBPAM),yes)
+LIBS_TO_BUILD+= $(LIBNAMED)
+endif
+ifeq ($(STATIC_LIBPAM),yes)
+LIBS_TO_BUILD+= $(LIBNAMEDSTATIC)
+endif
+ifeq ($(LIBTOOL_LIBPAM),yes)
+LIBS_TO_BUILD+= $(LIBNAMEDLIBTOOL)
+endif
+
+all: dirs $(LIBS_TO_BUILD)
dirs:
ifeq ($(DYNAMIC_LIBPAM),yes)
@@ -57,6 +80,9 @@ dynamic/%.o : %.c
static/%.o : %.c
$(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
+%.lo : %.c
+ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $<
+
$(LIBNAMED): $(DLIBOBJECTS)
ifeq ($(DYNAMIC_LIBPAM),yes)
ifeq ($(USESONAME),yes)
@@ -78,9 +104,30 @@ ifeq ($(STATIC_LIBPAM),yes)
$(RANLIB) $@
endif
-install: all
+$(LIBNAMEDLIBTOOL): $(LALIBOBJECTS)
+ifeq ($(LIBTOOL_LIBPAM),yes)
+ $(LIBTOOL) --tag=CC --mode=link $(CC) $(LDFLAGS) $(LALIBOBJECTS) -o $@ \
+ $(MODULES) $(LINKLIBS) \
+ -rpath $(libdir) -version-info $(MAJOR_REL):$(MINOR_REL)
+endif
+
+install: all install-headers
+
+ifeq ($(DYNAMIC_LIBPAM),yes)
+install: install-dynamic
+endif
+ifeq ($(STATIC_LIBPAM),yes)
+install: install-static
+endif
+ifeq ($(LIBTOOL_LIBPAM),yes)
+install: install-libtool
+endif
+
+install-headers:
$(MKDIR) $(FAKEROOT)$(INCLUDED)
$(INSTALL) -m 644 include/security/pam_misc.h $(FAKEROOT)$(INCLUDED)
+
+install-dynamic:
ifeq ($(DYNAMIC_LIBPAM),yes)
$(MKDIR) $(FAKEROOT)$(libdir)
$(INSTALL) -m $(SHLIBMODE) $(LIBNAMED) $(FAKEROOT)$(libdir)/$(LIBNAMEDFULL)
@@ -89,19 +136,30 @@ ifeq ($(DYNAMIC_LIBPAM),yes)
( cd $(FAKEROOT)$(libdir) ; rm -f $(LIBNAMED) ; ln -s $(LIBNAMEDNAME) $(LIBNAMED) )
endif
endif
+
+install-static:
ifeq ($(STATIC_LIBPAM),yes)
$(INSTALL) -m 644 $(LIBNAMEDSTATIC) $(FAKEROOT)$(libdir)
endif
+install-libtool:
+ifeq ($(LIBTOOL_LIBPAM),yes)
+ $(LIBTOOL) --mode=install $(INSTALL) -c $(LIBNAMEDLIBTOOL) $(FAKEROOT)$(libdir)
+endif
+
remove:
rm -f $(FAKEROOT)$(INCLUDED)/pam_misc.h
rm -f $(FAKEROOT)$(libdir)/$(LIBNAMEDFULL)
rm -f $(FAKEROOT)$(libdir)/$(LIBNAMED)
$(LDCONFIG)
rm -f $(FAKEROOT)$(libdir)/$(LIBNAMEDSTATIC)
+ifeq ($(LIBTOOL_LIBPAM),yes)
+ $(LIBTOOL) --mode=uninstall rm $(FAKEROOT)$(libdir)/$(LIBNAMEDLIBTOOL)
+endif
clean:
rm -f a.out core *~ static/*.o dynamic/*.o
- rm -f *.a *.out *.o *.so ./include/security/*~
+ rm -f *.a *.la *.lo *.out *.o *.so .libs/* ./include/security/*~
if [ -d dynamic ]; then rmdir dynamic ; fi
if [ -d static ]; then rmdir static ; fi
+ if [ -d .libs ]; then rmdir .libs ; fi
+125
View File
@@ -0,0 +1,125 @@
$NetBSD: patch-af,v 1.6 2010/02/02 17:09:28 tnn Exp $
--- libpamc/Makefile.orig 2001-02-10 07:17:53.000000000 +0000
+++ libpamc/Makefile
@@ -15,7 +15,7 @@ endif
VERSION=.$(MAJOR_REL)
MODIFICATION=.$(MINOR_REL)
-CFLAGS += $(MOREFLAGS) $(DYNAMIC) $(STATIC)
+CFLAGS += $(MOREFLAGS) $(DYNAMIC) $(STATIC) $(LTCFLAGS)
# dynamic library names
@@ -27,6 +27,10 @@ LIBNAMEDFULL = $(LIBNAMEDNAME)$(MODIFICA
LIBNAMEDSTATIC = $(LIBNAME).a
+# libtool library name
+
+LIBNAMEDLIBTOOL = $(LIBNAME).la
+
LIBOBJECTS = pamc_client.o pamc_converse.o pamc_load.o
ifeq ($(DYNAMIC_LIBPAM),yes)
@@ -37,10 +41,24 @@ ifeq ($(STATIC_LIBPAM),yes)
SLIBOBJECTS = $(addprefix static/,$(LIBOBJECTS))
endif
+ifeq ($(LIBTOOL_LIBPAM),yes)
+LALIBOBJECTS = $(LIBOBJECTS:.o=.lo)
+endif
+
# ---------------------------------------------
## rules
-all: dirs $(LIBNAMED) $(LIBNAMEDSTATIC)
+ifeq ($(DYNAMIC_LIBPAM),yes)
+LIBS_TO_BUILD+= $(LIBNAMED)
+endif
+ifeq ($(STATIC_LIBPAM),yes)
+LIBS_TO_BUILD+= $(LIBNAMEDSTATIC)
+endif
+ifeq ($(LIBTOOL_LIBPAM),yes)
+LIBS_TO_BUILD+= $(LIBNAMEDLIBTOOL)
+endif
+
+all: dirs $(LIBS_TO_BUILD)
dirs:
ifeq ($(DYNAMIC_LIBPAM),yes)
@@ -56,6 +74,9 @@ dynamic/%.o : %.c
static/%.o : %.c
$(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
+%.lo : %.c
+ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $<
+
$(LIBNAMED): $(DLIBOBJECTS)
ifeq ($(DYNAMIC_LIBPAM),yes)
ifeq ($(USESONAME),yes)
@@ -77,9 +98,30 @@ ifeq ($(STATIC_LIBPAM),yes)
$(RANLIB) $@
endif
-install: all
+$(LIBNAMEDLIBTOOL): $(LALIBOBJECTS)
+ifeq ($(LIBTOOL_LIBPAM),yes)
+ $(LIBTOOL) --tag=CC --mode=link $(CC) $(LDFLAGS) $(LALIBOBJECTS) -o $@ \
+ $(MODULES) $(LINKLIBS) \
+ -rpath $(libdir) -version-info $(MAJOR_REL):$(MINOR_REL)
+endif
+
+install: all install-headers
+
+ifeq ($(DYNAMIC_LIBPAM),yes)
+install: install-dynamic
+endif
+ifeq ($(STATIC_LIBPAM),yes)
+install: install-static
+endif
+ifeq ($(LIBTOOL_LIBPAM),yes)
+install: install-libtool
+endif
+
+install-headers:
$(MKDIR) $(FAKEROOT)$(INCLUDED)
$(INSTALL) -m 644 include/security/pam_client.h $(FAKEROOT)$(INCLUDED)
+
+install-dynamic:
ifeq ($(DYNAMIC_LIBPAM),yes)
$(MKDIR) $(FAKEROOT)$(libdir)
$(INSTALL) -m $(SHLIBMODE) $(LIBNAMED) $(FAKEROOT)$(libdir)/$(LIBNAMEDFULL)
@@ -88,20 +130,30 @@ ifeq ($(DYNAMIC_LIBPAM),yes)
( cd $(FAKEROOT)$(libdir) ; rm -f $(LIBNAMED) ; ln -s $(LIBNAMEDNAME) $(LIBNAMED) )
endif
endif
+
+install-static:
ifeq ($(STATIC_LIBPAM),yes)
$(INSTALL) -m 644 $(LIBNAMEDSTATIC) $(FAKEROOT)$(libdir)
endif
+install-libtool:
+ifeq ($(LIBTOOL_LIBPAM),yes)
+ $(LIBTOOL) --mode=install $(INSTALL) -c $(LIBNAMEDLIBTOOL) $(FAKEROOT)$(libdir)
+endif
+
remove:
rm -f $(FAKEROOT)$(INCLUDED)/pam_client.h
rm -f $(FAKEROOT)$(libdir)/$(LIBNAMEDFULL)
rm -f $(FAKEROOT)$(libdir)/$(LIBNAMED)
$(LDCONFIG)
rm -f $(FAKEROOT)$(libdir)/$(LIBNAMEDSTATIC)
+ifeq ($(LIBTOOL_LIBPAM),yes)
+ $(LIBTOOL) --mode=uninstall rm $(FAKEROOT)$(libdir)/$(LIBNAMEDLIBTOOL)
+endif
clean:
rm -f a.out core *~ static/*.o dynamic/*.o
- rm -f *.a *.out *.o *.so ./include/security/*~
+ rm -f *.a *.la *.lo *.out *.o *.so .libs/* ./include/security/*~
if [ -d dynamic ]; then rmdir dynamic ; fi
if [ -d static ]; then rmdir static ; fi
-
+ if [ -d .libs ]; then rmdir .libs ; fi
+52
View File
@@ -0,0 +1,52 @@
$NetBSD: patch-ag,v 1.5 2010/02/02 17:09:28 tnn Exp $
--- modules/pammodutil/Makefile.orig 2001-12-09 22:15:12.000000000 +0000
+++ modules/pammodutil/Makefile
@@ -25,10 +25,15 @@ LIBSTATIC = $(LIBNAME).a
SLIBOBJECTS = $(addprefix static/,$(LIBOBJECTS) $(STATICOBJ))
+# libtool library name
+LIBLIBTOOL = $(LIBNAME).la
+
+LALIBOBJECTS = $(LIBOBJECTS:.o=.lo)
+
# ---------------------------------------------
## rules
-all: dirs $(LIBSTATIC) ../../Make.Rules
+all: dirs $(LIBLIBTOOL) ../../Make.Rules
dirs:
$(MKDIR) static
@@ -36,10 +41,19 @@ dirs:
static/%.o : %.c
$(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
+%.lo: %.c
+ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $<
+
$(LIBSTATIC): $(SLIBOBJECTS)
ar cr $@ $(SLIBOBJECTS)
$(RANLIB) $@
+# This is a libtool convenience library that may be linked into shared
+# libraries and modules.
+#
+$(LIBLIBTOOL): $(LALIBOBJECTS)
+ $(LIBTOOL) --tag=CC --mode=link $(CC) $(LDFLAGS) $(LALIBOBJECTS) -o $@
+
install:
@echo "at this time, we're not installing $(LIBSTATIC)"
@@ -47,7 +61,8 @@ remove:
@echo "at this time, there is nothing to remove"
clean:
- rm -f a.out core *~ static/*.o
- rm -f *.a *.o
+ rm -f a.out core *~ static/*.o .libs/*
+ rm -f *.a *.la *.la *.o
if [ -d dynamic ]; then rmdir dynamic ; fi
if [ -d static ]; then rmdir static ; fi
+ if [ -d libs ]; then rmdir .libs; fi
+94
View File
@@ -0,0 +1,94 @@
$NetBSD: patch-ah,v 1.7 2006/05/14 19:58:04 minskim Exp $
--- modules/Simple.Rules.orig 2001-12-09 22:15:11.000000000 +0000
+++ modules/Simple.Rules
@@ -18,8 +18,13 @@ LIBSRC = $(addsuffix .c,$(LIBFILES))
LIBOBJ = $(addsuffix .o,$(LIBFILES))
LIBOBJD = $(addprefix dynamic/,$(LIBOBJ))
LIBOBJS = $(addprefix static/,$(LIBOBJ))
+LIBOBJLA = $(LIBOBJ:.o=.lo)
+ifdef LIBTOOL
+LINK_PAMMODUTILS = ../pammodutil/libpammodutil.la
+else
LINK_PAMMODUTILS = -L../pammodutil -lpammodutil
+endif
INCLUDE_PAMMODUTILS = -I../pammodutil/include
ifdef DYNAMIC
@@ -30,9 +35,23 @@ ifdef STATIC
LIBSTATIC = lib$(TITLE).o
endif
+ifdef LIBTOOL
+LIBLIBTOOL = $(TITLE).la
+endif
+
####################### don't edit below #######################
-all: dirs $(LIBSHARED) $(LIBSTATIC) register
+ifdef DYNAMIC
+MODULES_TO_BUILD+= $(LIBSHARED)
+endif
+ifdef STATIC
+MODULES_TO_BUILD+= $(LIBSTATIC)
+endif
+ifdef LIBTOOL
+MODULES_TO_BUILD+= $(LIBLIBTOOL)
+endif
+
+all: dirs $(MODULES_TO_BUILD) register
dynamic/%.o : %.c
$(CC) $(CFLAGS) $(INCLUDE_PAMMODUTILS) $(DYNAMIC) $(TARGET_ARCH) -c $< -o $@
@@ -40,6 +59,9 @@ dynamic/%.o : %.c
static/%.o : %.c
$(CC) $(CFLAGS) $(INCLUDE_PAMMODUTILS) $(STATIC) $(TARGET_ARCH) -c $< -o $@
+%.lo : %.c
+ $(SHLIBTOOL) --mode=compile $(CC) $(CFLAGS) $(INCLUDE_PAMMODUTILS) $(LTCFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $<
+
dirs:
ifdef DYNAMIC
$(MKDIR) ./dynamic
@@ -72,22 +94,37 @@ $(LIBSTATIC): $(LIBOBJS)
$(LD) -r -o $@ $(LIBOBJS) $(MODULE_SIMPLE_EXTRALIBS) $(LINK_PAMMODUTILS)
endif
+ifdef LIBTOOL
+$(LIBOBJLA): $(LIBSRC)
+endif
+
+ifdef LIBTOOL
+$(LIBLIBTOOL): $(LIBOBJLA)
+ $(SHLIBTOOL) --mode=link $(CC) $(LDFLAGS) $(LIBOBJLA) -o $@ $(MODULE_SIMPLE_EXTRALIBS) $(NEED_LINK_LIB_C) $(LINK_PAMMODUTILS) -module -avoid-version -rpath $(FAKEROOT)$(SECUREDIR)
+endif
+
install: all
$(MKDIR) $(FAKEROOT)$(SECUREDIR)
ifdef DYNAMIC
$(INSTALL) -m $(SHLIBMODE) $(LIBSHARED) $(FAKEROOT)$(SECUREDIR)
endif
+ifdef LIBTOOL
+ $(SHLIBTOOL) --mode=install $(INSTALL) -c $(LIBLIBTOOL) $(FAKEROOT)$(SECUREDIR)
+endif
$(MODULE_SIMPLE_INSTALL)
remove:
rm -f $(FAKEROOT)$(SECUREDIR)/$(TITLE).so
+ifdef LIBTOOL
+ $(SHLIBTOOL) --mode=uninstall rm $(FAKEROOT)$(SECUREDIR)/$(TITLE).la
+endif
$(MODULE_SIMPLE_REMOVE)
clean:
- rm -f $(LIBOBJD) $(LIBOBJS) core *~
+ rm -f $(LIBOBJD) $(LIBOBJS) $(LIBOBJLA) core *~
$(MODULE_SIMPLE_CLEAN)
- rm -f *.a *.o *.so *.bak
- rm -rf dynamic static
+ rm -f *.a *.la *.lo *.o *.so *.bak
+ rm -rf dynamic static .libs
$(MODULE_SIMPLE_EXTRACLEAN)
.c.o:
+13
View File
@@ -0,0 +1,13 @@
$NetBSD: patch-ai,v 1.3 2002/12/23 21:23:59 jlam Exp $
--- modules/pam_access/Makefile.orig Sun Nov 19 18:54:03 2000
+++ modules/pam_access/Makefile
@@ -14,8 +14,4 @@ INSTALLED_CONFILE=$(SCONFIGD)/access.con
DEFS=-DDEFAULT_CONF_FILE=\"$(INSTALLED_CONFILE)\"
CFLAGS += $(DEFS)
-MODULE_SIMPLE_INSTALL=bash -f ../install_conf "$(FAKEROOT)" "$(SCONFIGD)" "$(INSTALLED_CONFILE)" "$(TITLE)" "$(LOCAL_CONFILE)"
-MODULE_SIMPLE_REMOVE=rm -f $(FAKEROOT)$(INSTALLED_CONFILE)
-MODULE_SIMPLE_CLEAN=rm -f ./.ignore_age
-
include ../Simple.Rules
+13
View File
@@ -0,0 +1,13 @@
$NetBSD: patch-aj,v 1.3 2002/12/23 21:23:59 jlam Exp $
--- modules/pam_env/Makefile.orig Sun Nov 19 18:54:03 2000
+++ modules/pam_env/Makefile
@@ -15,8 +15,4 @@ INSTALLED_CONFILE=$(SCONFIGD)/pam_env.co
DEFS=-DDEFAULT_CONF_FILE=\"$(INSTALLED_CONFILE)\"
CFLAGS += $(DEFS)
-MODULE_SIMPLE_INSTALL=bash -f ../install_conf "$(FAKEROOT)" "$(SCONFIGD)" "$(INSTALLED_CONFILE)" "$(TITLE)" "$(LOCAL_CONFILE)"
-MODULE_SIMPLE_REMOVE=rm -f $(FAKEROOT)$(INSTALLED_CONFILE)
-MODULE_SIMPLE_CLEAN=rm -f ./.ignore_age
-
include ../Simple.Rules
+90
View File
@@ -0,0 +1,90 @@
$NetBSD: patch-ak,v 1.3 2002/12/23 21:23:59 jlam Exp $
--- modules/pam_filter/pam_filter.c.orig Sun Nov 11 02:43:54 2001
+++ modules/pam_filter/pam_filter.c
@@ -21,7 +21,17 @@
#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
+#ifdef HAVE_TERMIOS_H
+#include <termios.h>
+#define STRUCT_TERMIO struct termios
+#define TCGETATTR(fd, p_termio) tcgetattr(fd, p_termio)
+#define TCSETATTR(fd, p_termio) tcsetattr(fd, TCSANOW, p_termio)
+#else
#include <termio.h>
+#define STRUCT_TERMIO struct termio
+#define TCGETATTR(fd, p_termio) ioctl(fd, TCGETA, (char *) p_termio)
+#define TCSETATTR(fd, p_termio) ioctl(fd, TCSETA, (char *) p_termio)
+#endif
#include <signal.h>
@@ -278,7 +288,7 @@ static int set_filter(pam_handle_t *pamh
{
int status=-1;
char terminal[TERMINAL_LEN];
- struct termio stored_mode; /* initial terminal mode settings */
+ STRUCT_TERMIO stored_mode; /* initial terminal mode settings */
int fd[2], child=0, child2=0, aterminal;
if (filtername == NULL || *filtername != '/') {
@@ -307,17 +317,20 @@ static int set_filter(pam_handle_t *pamh
/* this is termio terminal handling... */
- if (ioctl(STDIN_FILENO, TCGETA, (char *) &stored_mode ) < 0) {
+ if (TCGETATTR(STDIN_FILENO, &stored_mode ) < 0) {
/* in trouble, so close down */
close(fd[0]);
_pam_log(LOG_CRIT, "couldn't copy terminal mode");
return PAM_ABORT;
} else {
- struct termio t_mode = stored_mode;
+ STRUCT_TERMIO t_mode = stored_mode;
t_mode.c_iflag = 0; /* no input control */
t_mode.c_oflag &= ~OPOST; /* no ouput post processing */
+#ifndef XCASE
+#define XCASE 0
+#endif
/* no signals, canonical input, echoing, upper/lower output */
t_mode.c_lflag &= ~(ISIG|ICANON|ECHO|XCASE);
t_mode.c_cflag &= ~(CSIZE|PARENB); /* no parity */
@@ -326,7 +339,7 @@ static int set_filter(pam_handle_t *pamh
t_mode.c_cc[VMIN] = 1; /* number of chars to satisfy a read */
t_mode.c_cc[VTIME] = 0; /* 0/10th second for chars */
- if (ioctl(STDIN_FILENO, TCSETA, (char *) &t_mode) < 0) {
+ if (TCSETATTR(STDIN_FILENO, &t_mode) < 0) {
close(fd[0]);
_pam_log(LOG_WARNING, "couldn't put terminal in RAW mode");
return PAM_ABORT;
@@ -356,7 +369,7 @@ static int set_filter(pam_handle_t *pamh
_pam_log(LOG_WARNING,"first fork failed");
if (aterminal) {
- (void) ioctl(STDIN_FILENO, TCSETA, (char *) &stored_mode);
+ (void) TCSETATTR(STDIN_FILENO, &stored_mode);
}
return PAM_AUTH_ERR;
@@ -398,7 +411,7 @@ static int set_filter(pam_handle_t *pamh
/* initialize the child's terminal to be the way the
parent's was before we set it into RAW mode */
- if (ioctl(fd[1], TCSETA, (char *) &stored_mode) < 0) {
+ if (TCSETATTR(fd[1], &stored_mode) < 0) {
_pam_log(LOG_WARNING,"cannot set slave terminal mode; %s"
,terminal);
close(fd[1]);
@@ -572,7 +585,7 @@ static int set_filter(pam_handle_t *pamh
if (aterminal) {
/* reset to initial terminal mode */
- (void) ioctl(STDIN_FILENO, TCSETA, (char *) &stored_mode);
+ (void) TCSETATTR(STDIN_FILENO, &stored_mode);
}
if (ctrl & FILTER_DEBUG) {
+13
View File
@@ -0,0 +1,13 @@
$NetBSD: patch-al,v 1.3 2002/12/23 21:23:59 jlam Exp $
--- modules/pam_group/Makefile.orig Sun Nov 19 18:54:04 2000
+++ modules/pam_group/Makefile
@@ -14,8 +14,4 @@ INSTALLED_CONFILE=$(SCONFIGD)/group.conf
DEFS=-DDEFAULT_CONF_FILE=\"$(CONFILE)\"
CFLAGS += $(DEFS)
-MODULE_SIMPLE_INSTALL=bash -f ../install_conf "$(FAKEROOT)" "$(SCONFIGD)" "$(INSTALLED_CONFILE)" "$(TITLE)" "$(LOCAL_CONFILE)"
-MODULE_SIMPLE_REMOVE=rm -f $(FAKEROOT)$(INSTALLED_CONFILE)
-MODULE_SIMPLE_CLEAN=rm -f ./.ignore_age
-
include ../Simple.Rules
+37
View File
@@ -0,0 +1,37 @@
$NetBSD: patch-am,v 1.4 2002/12/23 21:23:59 jlam Exp $
--- modules/pam_issue/pam_issue.c.orig Sun Nov 11 21:23:29 2001
+++ modules/pam_issue/pam_issue.c
@@ -21,6 +21,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
+#include <sys/param.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
@@ -244,12 +245,24 @@ char *do_prompt(FILE *fd)
case 'U':
{
int users = 0;
+#if (defined(BSD) && BSD >= 199306)
+ struct utmp ut;
+ FILE *uf;
+
+ if ((uf == fopen(_PATH_UTMP, "r")) != NULL) {
+ while (fread(&ut, sizeof(ut), 1, uf) > 0)
+ if (ut.ut_name[0] != '\0')
+ ++users;
+ (void) fclose(uf);
+ }
+#else
struct utmp *ut;
setutent();
while ((ut = getutent()))
if (ut->ut_type == USER_PROCESS)
users++;
endutent();
+#endif
printf ("%d ", users);
if (c == 'U')
snprintf (buf, 1024, "%s", (users == 1) ?
+12
View File
@@ -0,0 +1,12 @@
$NetBSD: patch-an,v 1.3 2002/12/23 21:23:59 jlam Exp $
--- modules/pam_mkhomedir/pam_mkhomedir.c.orig Fri Feb 8 00:20:17 2002
+++ modules/pam_mkhomedir/pam_mkhomedir.c
@@ -34,6 +34,7 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
+#include <limits.h>
#include <pwd.h>
#include <stdlib.h>
#include <stdio.h>
+13
View File
@@ -0,0 +1,13 @@
$NetBSD: patch-ao,v 1.3 2002/12/23 21:23:59 jlam Exp $
--- modules/pam_time/Makefile.orig Sun Nov 19 18:54:05 2000
+++ modules/pam_time/Makefile
@@ -14,8 +14,4 @@ INSTALLED_CONFILE=$(SCONFIGD)/time.conf
DEFS=-DDEFAULT_CONF_FILE=\"$(INSTALLED_CONFILE)\"
CFLAGS += $(DEFS)
-MODULE_SIMPLE_INSTALL=bash -f ../install_conf "$(FAKEROOT)" "$(SCONFIGD)" "$(INSTALLED_CONFILE)" "$(TITLE)" "$(LOCAL_CONFILE)"
-MODULE_SIMPLE_REMOVE=rm -f $(FAKEROOT)$(INSTALLED_CONFILE)
-MODULE_SIMPLE_CLEAN=rm -f ./.ignore_age
-
include ../Simple.Rules
+141
View File
@@ -0,0 +1,141 @@
$NetBSD: patch-ap,v 1.3 2002/12/23 21:23:59 jlam Exp $
--- modules/pam_unix/pam_unix_acct.c.orig Wed Dec 20 00:15:05 2000
+++ modules/pam_unix/pam_unix_acct.c
@@ -43,7 +43,9 @@
#include <sys/types.h>
#include <syslog.h>
#include <pwd.h>
+#ifdef HAVE_SHADOW_H
#include <shadow.h>
+#endif
#include <time.h> /* for time() */
#include <security/_pam_macros.h>
@@ -71,8 +73,10 @@ PAM_EXTERN int pam_sm_acct_mgmt(pam_hand
unsigned int ctrl;
const char *uname;
int retval, daysleft;
- time_t curdays;
+ time_t now, curdays;
+#ifdef HAVE_GETSPNAM
struct spwd *spent;
+#endif
struct passwd *pwent;
char buf[80];
@@ -113,7 +117,9 @@ PAM_EXTERN int pam_sm_acct_mgmt(pam_hand
return PAM_CRED_INSUFFICIENT;
}
}
+#ifdef HAVE_GETSPNAM
spent = getspnam( uname );
+#endif
if (save_uid == pwent->pw_uid)
setreuid( save_uid, save_euid );
else {
@@ -123,15 +129,21 @@ PAM_EXTERN int pam_sm_acct_mgmt(pam_hand
}
} else if (!strcmp( pwent->pw_passwd, "x" )) {
+#ifdef HAVE_GETSPNAM
spent = getspnam(uname);
+#endif
} else {
return PAM_SUCCESS;
}
+#ifdef HAVE_GETSPNAM
if (!spent)
return PAM_AUTHINFO_UNAVAIL; /* Couldn't get username from shadow */
+#endif
- curdays = time(NULL) / (60 * 60 * 24);
+ now = time(NULL);
+ curdays = now / (60 * 60 * 24);
+#ifdef HAVE_GETSPNAM
D(("today is %d, last change %d", curdays, spent->sp_lstchg));
if ((curdays > spent->sp_expire) && (spent->sp_expire != -1)
&& (spent->sp_lstchg != 0)) {
@@ -143,6 +155,29 @@ PAM_EXTERN int pam_sm_acct_mgmt(pam_hand
D(("account expired"));
return PAM_ACCT_EXPIRED;
}
+#else
+ if ((now > pwent->pw_expire) && (pwent->pw_expire != 0)) {
+ _log_err(LOG_NOTICE, pamh
+ ,"account %s has expired (account expired)"
+ ,uname);
+ _make_remark(pamh, ctrl, PAM_ERROR_MSG,
+ "Your account has expired; please contact your system administrator");
+ D(("account expired"));
+ return PAM_ACCT_EXPIRED;
+ }
+ if ((now + _PASSWORD_WARNDAYS * 60 * 60 * 24 > pwent->pw_expire)
+ && (pwent->pw_expire != 0)) {
+ daysleft = (pwent->pw_expire - now) / (60 * 60 * 24);
+ _log_err(LOG_DEBUG, pamh
+ ,"account for user %s will expire in %d days"
+ ,uname, daysleft);
+ snprintf(buf, 80, "Warning: your account will expire in %d day%.2s",
+ daysleft, daysleft == 1 ? "" : "s");
+ _make_remark(pamh, ctrl, PAM_TEXT_INFO, buf);
+ }
+#endif
+
+#ifdef HAVE_GETSPNAM
if ((curdays > (spent->sp_lstchg + spent->sp_max + spent->sp_inact))
&& (spent->sp_max != -1) && (spent->sp_inact != -1)
&& (spent->sp_lstchg != 0)) {
@@ -154,7 +189,9 @@ PAM_EXTERN int pam_sm_acct_mgmt(pam_hand
D(("account expired 2"));
return PAM_ACCT_EXPIRED;
}
+#endif
D(("when was the last change"));
+#ifdef HAVE_GETSPNAM
if (spent->sp_lstchg == 0) {
_log_err(LOG_NOTICE, pamh
,"expired password for user %s (root enforced)"
@@ -173,6 +210,19 @@ PAM_EXTERN int pam_sm_acct_mgmt(pam_hand
D(("need a new password 2"));
return PAM_NEW_AUTHTOK_REQD;
}
+#else
+ if (pwent->pw_change == -1) {
+ _log_err(LOG_NOTICE, pamh
+ ,"expired password for user %s (root enforced)"
+ ,uname);
+ _make_remark(pamh, ctrl, PAM_ERROR_MSG,
+ "You are required to change your password immediately (root enforced)");
+ D(("need a new password"));
+ return PAM_NEW_AUTHTOK_REQD;
+ }
+#endif
+
+#ifdef HAVE_GETSPNAM
if ((curdays > (spent->sp_lstchg + spent->sp_max - spent->sp_warn))
&& (spent->sp_max != -1) && (spent->sp_warn != -1)) {
daysleft = (spent->sp_lstchg + spent->sp_max) - curdays;
@@ -183,6 +233,21 @@ PAM_EXTERN int pam_sm_acct_mgmt(pam_hand
daysleft, daysleft == 1 ? "" : "s");
_make_remark(pamh, ctrl, PAM_TEXT_INFO, buf);
}
+#else
+#ifndef _PASSWORD_WARNDAYS
+#define _PASSWORD_WARNDAYS 14
+#endif
+ if ((now + _PASSWORD_WARNDAYS * 60 * 60 * 24 > pwent->pw_change)
+ && (pwent->pw_change != 0) && (pwent->pw_change != -1)) {
+ daysleft = (pwent->pw_change - now) / (60 * 60 * 24);
+ _log_err(LOG_DEBUG, pamh
+ ,"password for user %s will expire in %d days"
+ ,uname, daysleft);
+ snprintf(buf, 80, "Warning: your password will expire in %d day%.2s",
+ daysleft, daysleft == 1 ? "" : "s");
+ _make_remark(pamh, ctrl, PAM_TEXT_INFO, buf);
+ }
+#endif
D(("all done"));
+81
View File
@@ -0,0 +1,81 @@
$NetBSD: patch-aq,v 1.4 2002/12/23 21:23:59 jlam Exp $
--- modules/pam_unix/pam_unix_passwd.c.orig Tue Jul 9 00:44:18 2002
+++ modules/pam_unix/pam_unix_passwd.c
@@ -47,7 +47,10 @@
#include <sys/types.h>
#include <pwd.h>
#include <syslog.h>
+#include <sys/param.h>
+#ifdef HAVE_SHADOW_H
#include <shadow.h>
+#endif
#include <time.h> /* for time() */
#include <fcntl.h>
#include <ctype.h>
@@ -77,7 +80,7 @@
#include "md5.h"
#include "support.h"
-#if !((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 1))
+#if !defined(BSD) && !((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 1))
extern int getrpcport(const char *host, unsigned long prognum,
unsigned long versnum, unsigned int proto);
#endif /* GNU libc 2.1 */
@@ -346,6 +349,7 @@ static int save_old_password(const char
static int _update_passwd(pam_handle_t *pamh,
const char *forwho, const char *towhat)
{
+#ifdef HAVE_SHADOW_H
struct passwd *tmpent = NULL;
FILE *pwfile, *opwfile;
int err = 1;
@@ -401,10 +405,14 @@ static int _update_passwd(pam_handle_t *
unlink(PW_TMPFILE);
return PAM_AUTHTOK_ERR;
}
+#else
+ return PAM_AUTHTOK_ERR;
+#endif
}
static int _update_shadow(const char *forwho, char *towhat)
{
+#ifdef HAVE_GETSPNAM
struct spwd *spwdent = NULL, *stmpent = NULL;
FILE *pwfile, *opwfile;
int err = 1;
@@ -461,6 +469,9 @@ static int _update_shadow(const char *fo
unlink(SH_TMPFILE);
return PAM_AUTHTOK_ERR;
}
+#else
+ return PAM_AUTHTOK_ERR;
+#endif
}
static int _do_setpass(pam_handle_t* pamh, const char *forwho, char *fromwhat,
@@ -569,6 +580,7 @@ static int _unix_verify_shadow(const cha
if (pwd == NULL)
return PAM_AUTHINFO_UNAVAIL; /* We don't need to do the rest... */
+#ifdef HAVE_GETSPNAM
if (strcmp(pwd->pw_passwd, "x") == 0) {
/* ...and shadow password file entry for this user, if shadowing
is enabled */
@@ -619,6 +631,15 @@ static int _unix_verify_shadow(const cha
}
}
return retval;
+#else
+ if (strcmp(pwd->pw_passwd, "x") == 0)
+ return PAM_AUTHINFO_UNAVAIL;
+
+ if (off(UNIX__IAMROOT, ctrl)) {
+ if (time(NULL) > pwd->pw_expire)
+ return PAM_ACCT_EXPIRED;
+ }
+#endif
}
static int _pam_unix_approve_pass(pam_handle_t * pamh
+79
View File
@@ -0,0 +1,79 @@
$NetBSD: patch-ar,v 1.4 2003/05/16 17:30:59 wiz Exp $
--- modules/pam_unix/support.c.orig Mon Sep 23 13:33:22 2002
+++ modules/pam_unix/support.c
@@ -6,13 +6,17 @@
#define _BSD_SOURCE
+#include "../../_pam_aconf.h"
+
#include <stdlib.h>
#include <unistd.h>
#include <stdarg.h>
#include <string.h>
#include <malloc.h>
#include <pwd.h>
+#ifdef HAVE_SHADOW_H
#include <shadow.h>
+#endif
#include <limits.h>
#include <utmp.h>
#include <errno.h>
@@ -113,6 +117,12 @@ int _make_remark(pam_handle_t * pamh, un
*/
char *PAM_getlogin(void)
{
+#ifdef USE_GETLOGIN
+ char *retval = NULL;
+ retval = getlogin();
+ D(("PAM_getlogin retval: %s", retval));
+ return retval;
+#else
struct utmp *ut, line;
char *curr_tty, *retval;
static char curr_user[sizeof(ut->ut_user) + 4];
@@ -135,6 +145,7 @@ char *PAM_getlogin(void)
D(("PAM_getlogin retval: %s", retval));
return retval;
+#endif
}
/*
@@ -358,6 +369,7 @@ int _unix_blankpasswd(unsigned int ctrl,
#endif
if (pwd != NULL) {
+#ifdef HAVE_GETSPNAM
if (strcmp( pwd->pw_passwd, "*NP*" ) == 0)
{ /* NIS+ */
uid_t save_euid, save_uid;
@@ -400,6 +412,9 @@ int _unix_blankpasswd(unsigned int ctrl,
salt = x_strdup(spwdent->sp_pwdp);
else
salt = x_strdup(pwd->pw_passwd);
+#else
+ salt = x_strdup(pwd->pw_passwd);
+#endif
}
/* Does this user have a password? */
if (salt == NULL) {
@@ -535,6 +550,7 @@ int _unix_verify_password(pam_handle_t *
pwd = getpwnam(name); /* Get password file entry... */
if (pwd != NULL) {
+#ifdef HAVE_GETSPNAM
if (strcmp( pwd->pw_passwd, "*NP*" ) == 0)
{ /* NIS+ */
uid_t save_euid, save_uid;
@@ -572,6 +588,9 @@ int _unix_verify_password(pam_handle_t *
salt = x_strdup(spwdent->sp_pwdp);
else
salt = x_strdup(pwd->pw_passwd);
+#else
+ salt = x_strdup(pwd->pw_passwd);
+#endif
}
data_name = (char *) malloc(sizeof(FAIL_PREFIX) + strlen(name));
+32
View File
@@ -0,0 +1,32 @@
$NetBSD: patch-as,v 1.3 2002/12/23 21:24:00 jlam Exp $
--- modules/pam_unix/unix_chkpwd.c.orig Mon Sep 23 13:33:22 2002
+++ modules/pam_unix/unix_chkpwd.c
@@ -29,7 +29,9 @@
#include <unistd.h>
#include <sys/types.h>
#include <pwd.h>
+#ifdef HAVE_SHADOW_H
#include <shadow.h>
+#endif
#include <signal.h>
#define MAXPASS 200 /* the maximum length of a password */
@@ -101,6 +103,7 @@ static int _unix_verify_password(const c
pwd = getpwnam(name); /* Get password file entry... */
endpwent();
if (pwd != NULL) {
+#ifdef HAVE_GETSPNAM
if (strcmp(pwd->pw_passwd, "x") == 0) {
/*
* ...and shadow password file entry for this user,
@@ -127,6 +130,9 @@ static int _unix_verify_password(const c
salt = x_strdup(pwd->pw_passwd);
}
}
+#else
+ salt = x_strdup(pwd->pw_passwd);
+#endif
}
if (pwd == NULL || salt == NULL) {
_log_err(LOG_ALERT, "check pass; user unknown");
+40
View File
@@ -0,0 +1,40 @@
$NetBSD: patch-at,v 1.6 2007/07/09 03:51:33 minskim Exp $
--- Make.Rules.in.orig 2002-06-26 21:04:54.000000000 -0700
+++ Make.Rules.in
@@ -49,6 +49,7 @@ HAVE_LIBUTIL=@HAVE_LIBUTIL@
HAVE_NDBM_H=@HAVE_NDBM_H@
HAVE_LIBNDBM=@HAVE_LIBNDBM@
HAVE_LIBDB=@HAVE_LIBDB@
+HAVE_LIBDB4=@HAVE_LIBDB4@
HAVE_LIBFL=@HAVE_LIBFL@
HAVE_LIBNSL=@HAVE_LIBNSL@
HAVE_LIBPWDB=@HAVE_LIBPWDB@
@@ -75,10 +76,14 @@ WITH_MEMORY_DEBUG=@WITH_MEMORY_DEBUG@
WITH_LIBDEBUG=@WITH_LIBDEBUG@
WITH_PAMLOCKING=@WITH_PAMLOCKING@
WITH_LCKPWDF=@WITH_LCKPWDF@
-STATIC_LIBPAM=@STATIC_LIBPAM@
-DYNAMIC_LIBPAM=@DYNAMIC_LIBPAM@
-STATIC=@STATIC@
-DYNAMIC=@DYNAMIC@
+STATIC_LIBPAM=no
+DYNAMIC_LIBPAM=no
+LIBTOOL_LIBPAM=yes
+STATIC=
+DYNAMIC=
+LTCFLAGS=-DPAM_DYNAMIC
+LIBTOOL=@LIBTOOL@
+SHLIBTOOL=@SHLIBTOOL@
# Location of libraries when installed on the system
FAKEROOT=@FAKEROOT@
@@ -104,7 +109,7 @@ LIBDL=@LIBDL@
MKDIR=@MKDIR@
INSTALL=@INSTALL@
RANLIB=@RANLIB@
-STRIP=@STRIP@
+STRIP=:
CC_STATIC=@CC_STATIC@
LINKLIBS = $(NEED_LINK_LIB_C) $(LIBDL)
+95
View File
@@ -0,0 +1,95 @@
$NetBSD: patch-au,v 1.5 2004/11/19 14:54:55 jlam Exp $
--- modules/pam_filter/Makefile.orig 2001-11-11 02:43:54.000000000 -0500
+++ modules/pam_filter/Makefile
@@ -27,6 +27,7 @@ LIBSRC = $(TITLE).c
LIBOBJ = $(TITLE).o
LIBOBJD = $(addprefix dynamic/,$(LIBOBJ))
LIBOBJS = $(addprefix static/,$(LIBOBJ))
+LIBOBJLA = $(LIBOBJ:.o=.lo)
dynamic/%.o : %.c
$(CC) $(CFLAGS) $(DYNAMIC) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
@@ -34,6 +35,9 @@ dynamic/%.o : %.c
static/%.o : %.c
$(CC) $(CFLAGS) $(STATIC) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
+%.lo : %.c
+ $(SHLIBTOOL) --mode=compile $(CC) $(CFLAGS) $(INCLUDE_PAMMODUTILS) $(LTCFLAGS) $(TARGET_ARCH) -c $<
+
ifdef DYNAMIC
LIBSHARED = $(TITLE).so
endif
@@ -42,13 +46,27 @@ ifdef STATIC
LIBSTATIC = lib$(TITLE).o
endif
+ifdef LIBTOOL
+LIBLIBTOOL = $(TITLE).la
+endif
+
####################### don't edit below #######################
#
# this is where we compile this module
#
-all: dirs $(LIBSHARED) $(LIBSTATIC) register filters
+ifdef DYNAMIC
+MODULES_TO_BUILD+= $(LIBSHARED)
+endif
+ifdef STATIC
+MODULES_TO_BUILD+= $(LIBSTATIC)
+endif
+ifdef LIBTOOL
+MODULES_TO_BUILD+= $(LIBLIBTOOL)
+endif
+
+all: dirs $(MODULES_TO_BUILD) register filters
dirs:
if [ ! -r include/security ]; then ln -sf . include/security ; fi
@@ -90,8 +108,20 @@ $(LIBSTATIC): $(LIBOBJS)
$(LD) -r -o $@ $(LIBOBJS)
endif
+ifdef LIBTOOL
+$(LIBOBJLA): $(LIBSRC)
+endif
+
+ifdef LIBTOOL
+$(LIBLIBTOOL): $(LIBOBJLA)
+ $(SHLIBTOOL) --mode=link $(CC) $(LDFLAGS) $(LIBOBJLA) -o $@ -module -avoid-version -rpath $(FAKEROOT)$(SECUREDIR)
+endif
+
remove:
rm -f $(FAKEROOT)$(SECUREDIR)/$(TITLE).so
+ifdef LIBTOOL
+ $(LIBTOOL) --mode-uninstall rm $(FAKEROOT)$(SECUREDIR)/$(TITLE).la
+endif
rm -f $(FAKEROOT)$(INCLUDED)/pam_filter.h
@for i in $(FILTERS) ; do \
if [ -d $$i ]; then \
@@ -109,6 +139,9 @@ install: all
ifdef DYNAMIC
$(INSTALL) -m $(SHLIBMODE) $(LIBSHARED) $(FAKEROOT)$(SECUREDIR)
endif
+ifdef LIBTOOL
+ $(LIBTOOL) --mode=install $(INSTALL) $(LIBLIBTOOL) $(FAKEROOT)$(SECUREDIR)
+endif
$(MKDIR) $(FAKEROOT)$(INCLUDED)
$(INSTALL) -m 644 include/pam_filter.h $(FAKEROOT)$(INCLUDED)
@@ -118,9 +151,9 @@ clean:
$(MAKE) -C $$i clean ; \
fi ; \
done
- rm -f $(LIBSHARED) $(LIBOBJD) $(LIBOBJS) core *~
+ rm -f $(LIBSHARED) $(LIBLIBTOOL) $(LIBOBJD) $(LIBOBJS) $(LIBOBJSLA) core *~
rm -f include/security
- rm -fr dynamic static
- rm -f *.a *.o *.so *.bak
+ rm -fr dynamic static .libs
+ rm -f *.a *.la *.lo *.o *.so *.bak
endif
+101
View File
@@ -0,0 +1,101 @@
$NetBSD: patch-av,v 1.5 2004/11/19 14:54:55 jlam Exp $
--- modules/pam_tally/Makefile.orig 2001-06-27 02:20:43.000000000 -0400
+++ modules/pam_tally/Makefile
@@ -20,6 +20,7 @@ LIBSRC = $(TITLE).c
LIBOBJ = $(TITLE).o
LIBOBJD = $(addprefix dynamic/,$(LIBOBJ))
LIBOBJS = $(addprefix static/,$(LIBOBJ))
+LIBOBJLA = $(LIBOBJ:.o=.lo)
APPSRC = $(TITLE)_app.c
APPOBJ = $(TITLE)_app.o
@@ -32,6 +33,8 @@ dynamic/%.o : %.c
static/%.o : %.c
$(CC) $(CFLAGS) $(STATIC) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
+%.lo : %.c
+ $(SHLIBTOOL) --mode=compile $(CC) $(CFLAGS) $(LTCFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $<
ifdef DYNAMIC
LIBSHARED = $(TITLE).so
@@ -41,12 +44,26 @@ ifdef STATIC
LIBSTATIC = lib$(TITLE).o
endif
+ifdef LIBTOOL
+LIBLIBTOOL = $(TITLE).la
+endif
+
APPLICATION = $(TITLE)
APPMODE = 755
####################### don't edit below #######################
-all: dirs $(LIBSHARED) $(LIBSTATIC) register $(APPLICATION)
+ifdef DYNAMIC
+MODULES_TO_BUILD+= $(LIBSHARED)
+endif
+ifdef STATIC
+MODULES_TO_BUILD+= $(LIBSTATIC)
+endif
+ifdef LIBTOOL
+MODULES_TO_BUILD+= $(LIBLIBTOOL)
+endif
+
+all: dirs $(MODULES_TO_BUILD) register $(APPLICATION)
dirs:
ifdef DYNAMIC
@@ -55,6 +72,9 @@ endif
ifdef STATIC
$(MKDIR) ./static
endif
+ifdef LIBTOOL
+ $(MKDIR) ./static
+endif
register:
ifdef STATIC
@@ -82,22 +102,38 @@ $(APPLICATION): $(APPOBJS) $(TITLE).c
$(CC) $(CFLAGS) -o $@ $(APPOBJS) $(LOADLIBES)
endif
+ifdef LIBTOOL
+$(LIBOBJLA): $(LIBSRC)
+
+$(LIBLIBTOOL): $(LIBOBJLA)
+ $(SHLIBTOOL) --mode=link $(CC) $(LDFLAGS) $(LIBOBJLA) -o $@ -module -avoid-version -rpath $(FAKEROOT)$(SECUREDIR)
+
+$(APPLICATION): $(APPOBJS) $(TITLE).c
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS) -o $@ $(APPOBJS) $(LOADLIBES)
+endif
+
install: all
$(MKDIR) $(FAKEROOT)$(SECUREDIR)
ifdef DYNAMIC
$(INSTALL) -m $(SHLIBMODE) $(LIBSHARED) $(FAKEROOT)$(SECUREDIR)
endif
+ifdef LIBTOOL
+ $(SHLIBTOOL) --mode=install $(INSTALL) $(LIBLIBTOOL) $(FAKEROOT)$(SECUREDIR)
+endif
$(MKDIR) $(FAKEROOT)$(SUPLEMENTED)
$(INSTALL) -m $(APPMODE) $(APPLICATION) $(FAKEROOT)$(SUPLEMENTED)
remove:
rm -f $(FAKEROOT)$(SECUREDIR)/$(TITLE).so
+ifdef LIBTOOL
+ $(SHLIBTOOL) --mode=uninstall rm $(FAKEROOT)$(SECUREDIR)/$(TITLE).la
+endif
rm -f $(FAKEROOT)$(SUPLEMENTED)/$(TITLE)
clean:
- rm -f $(LIBOBJD) $(LIBOBJS) $(APPOBJD) $(APPOBJS) core *~
- rm -f *.a *.o *.so *.bak dynamic/* static/* $(APPLICATION)
- rm -rf dynamic static
+ rm -f $(LIBOBJD) $(LIBOBJS) $(LIBOBJLA) $(APPOBJD) $(APPOBJS) core *~
+ rm -f *.a *.la *.lo *.o *.so *.bak dynamic/* static/* $(APPLICATION)
+ rm -rf dynamic static .libs
.c.o:
$(CC) $(CFLAGS) -c $<
+137
View File
@@ -0,0 +1,137 @@
$NetBSD: patch-aw,v 1.6 2010/02/02 17:09:28 tnn Exp $
--- modules/pam_unix/Makefile.orig 2001-02-11 06:33:53.000000000 +0000
+++ modules/pam_unix/Makefile
@@ -55,6 +55,7 @@ LIBSRC = pam_unix_auth.c pam_unix_acct.c
support.c
LIBOBJD = $(addprefix dynamic/,$(LIBOBJ))
LIBOBJS = $(addprefix static/,$(LIBOBJ))
+LIBOBJLA = $(LIBOBJ:.o=.lo)
PLUS = md5_good.o md5_broken.o md5_crypt_good.o md5_crypt_broken.o \
yppasswd_xdr.o bigcrypt.o
@@ -65,11 +66,24 @@ endif
ifdef STATIC
LIBSTATIC = libpam_unix.o
endif
+ifdef LIBTOOL
+LIBLIBTOOL = pam_unix.la
+endif
########################### don't edit below #######################
-all: dirs info $(PLUS) $(LIBSHARED) $(LIBSTATIC) $(CHKPWD) register
+ifdef DYNAMIC
+MODULES_TO_BUILD+= $(LIBSHARED)
+endif
+ifdef STATIC
+MODULES_TO_BUILD+= $(LIBSTATIC)
+endif
+ifdef LIBTOOL
+MODULES_TO_BUILD+= $(LIBLIBTOOL)
+endif
+
+all: dirs info $(MODULES_TO_BUILD) $(CHKPWD) register
dynamic/%.o : %.c
$(CC) $(CFLAGS) $(DYNAMIC) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
@@ -77,6 +91,9 @@ dynamic/%.o : %.c
static/%.o: %.c
$(CC) $(CFLAGS) $(STATIC) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
+%.lo : %.c
+ $(SHLIBTOOL) --tag=CC --mode=compile $(CC) $(CFLAGS) $(LTCFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $<
+
dummy:
@echo "**** This is not a top-level Makefile "
exit
@@ -117,10 +134,17 @@ $(LIBSTATIC): $(LIBOBJS)
$(LD) -r -o $@ $(LIBOBJS) $(PLUS) $(CRACKLIB) $(LDLIBS) $(LIBNSL) $(LIBCRYPT)
endif
+ifdef LIBTOOL
+$(LIBOBJLA): $(LIBSRC)
+
+$(LIBLIBTOOL): $(LIBOBJLA) $(PLUS:.o=.lo)
+ $(SHLIBTOOL) --tag=CC --mode=link $(CC) $(LDFLAGS) $(LIBOBJLA) -o $@ $(PLUS:.o=.lo) $(CRACKLIB) $(LDLIBS) $(LIBNSL) $(LIBCRYPT) -module -avoid-version -rpath $(FAKEROOT)$(SECUREDIR)
+endif
+
$(CHKPWD): unix_chkpwd.o md5_good.o md5_broken.o \
md5_crypt_good.o md5_crypt_broken.o \
bigcrypt.o
- $(CC) -o $(CHKPWD) $^ $(LDLIBS) $(LIBCRYPT)
+ $(CC) $(LDFLAGS) -o $(CHKPWD) $^ $(LDLIBS) $(LIBCRYPT)
unix_chkpwd.o: unix_chkpwd.c
$(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
@@ -129,18 +153,38 @@ md5_good.o: md5.c
$(CC) $(CFLAGS) $(CPPFLAGS) -DHIGHFIRST -D'MD5Name(x)=Good##x' \
$(TARGET_ARCH) -c $< -o $@
+md5_good.lo: md5.c
+ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(CFLAGS) $(CPPFLAGS) \
+ -DHIGHFIRST -D'MD5Name(x)=Good##x' \
+ $(TARGET_ARCH) -c $< -o $@
+
md5_broken.o: md5.c
$(CC) $(CFLAGS) $(CPPFLAGS) -D'MD5Name(x)=Broken##x' \
$(TARGET_ARCH) -c $< -o $@
+md5_broken.lo: md5.c
+ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(CFLAGS) $(CPPFLAGS) \
+ -D'MD5Name(x)=Broken##x' \
+ $(TARGET_ARCH) -c $< -o $@
+
md5_crypt_good.o: md5_crypt.c
$(CC) $(CFLAGS) $(CPPFLAGS) -D'MD5Name(x)=Good##x' \
$(TARGET_ARCH) -c $< -o $@
+md5_crypt_good.lo: md5_crypt.c
+ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(CFLAGS) $(CPPFLAGS) \
+ -D'MD5Name(x)=Good##x' \
+ $(TARGET_ARCH) -c $< -o $@
+
md5_crypt_broken.o: md5_crypt.c
$(CC) $(CFLAGS) $(CPPFLAGS) -D'MD5Name(x)=Broken##x' \
$(TARGET_ARCH) -c $< -o $@
+md5_crypt_broken.lo: md5_crypt.c
+ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(CFLAGS) $(CPPFLAGS) \
+ -D'MD5Name(x)=Broken##x' \
+ $(TARGET_ARCH) -c $< -o $@
+
install: all
mkdir -p $(FAKEROOT)$(SECUREDIR)
ifdef DYNAMIC
@@ -148,19 +192,28 @@ ifdef DYNAMIC
for x in pam_unix_auth pam_unix_acct pam_unix_passwd pam_unix_session;\
do ln -sf $(LIBSHARED) $(FAKEROOT)$(SECUREDIR)/$$x.so ; done
endif
+ifdef LIBTOOL
+ $(SHLIBTOOL) --mode=install install $(LIBLIBTOOL) $(FAKEROOT)$(SECUREDIR)
+ . $(FAKEROOT)$(SECUREDIR)/$(LIBLIBTOOL); \
+ for x in pam_unix_auth pam_unix_acct pam_unix_passwd pam_unix_session;\
+ do ln -sf $$dlname $(FAKEROOT)$(SECUREDIR)/$$x.so ; done
+endif
$(MKDIR) $(FAKEROOT)$(SUPLEMENTED)
install -m 4555 $(CHKPWD) $(FAKEROOT)$(SUPLEMENTED)
remove:
rm -f $(FAKEROOT)$(SECUREDIR)/$(LIBSHARED)
+ifdef LIBTOOL
+ $(SHLIBTOOL) --mode=uninstall rm $(FAKEROOT)$(SECUREDIR)/$(LIBLIBTOOL)
+endif
for x in pam_unix_auth pam_unix_acct pam_unix_passwd pam_unix_session;\
do rm -f $(FAKEROOT)$(SECUREDIR)/$$x.so ; done
rm -f $(FAKEROOT)$(SUPLEMENTED)/$(CHKPWD)
clean:
- rm -f $(LIBOBJD) $(LIBOBJS) $(CHKPWD) *.o *.so core
+ rm -f $(LIBOBJD) $(LIBOBJS) $(LIBOBJLA) $(CHKPWD) *.la *.lo *.o *.so core
rm -f *~ *.a *.out *.bak
- rm -rf dynamic static
+ rm -rf dynamic static .libs
.c.o:
$(CC) -c $(CFLAGS) $<
+13
View File
@@ -0,0 +1,13 @@
$NetBSD: patch-ax,v 1.3 2004/11/16 07:46:58 jlam Exp $
--- Makefile.orig 2001-05-08 00:14:20.000000000 -0400
+++ Makefile
@@ -15,7 +15,7 @@ ifeq ($(shell test \! -f Make.Rules || e
include Make.Rules
endif
-THINGSTOMAKE = modules libpam libpamc libpam_misc doc examples
+THINGSTOMAKE = modules libpam libpamc libpam_misc doc
all: $(THINGSTOMAKE)
+15
View File
@@ -0,0 +1,15 @@
$NetBSD: patch-ay,v 1.3 2006/06/06 00:57:59 minskim Exp $
--- modules/pam_limits/Makefile.orig 2000-11-19 23:54:04.000000000 +0000
+++ modules/pam_limits/Makefile
@@ -18,10 +18,6 @@ INSTALLED_CONFILE=$(SCONFIGD)/limits.con
DEFS=-DDEFAULT_CONF_FILE=\"$(INSTALLED_CONFILE)\"
CFLAGS += $(DEFS)
-MODULE_SIMPLE_INSTALL=bash -f ../install_conf "$(FAKEROOT)" "$(SCONFIGD)" "$(INSTALLED_CONFILE)" "$(TITLE)" "$(LOCAL_CONFILE)"
-MODULE_SIMPLE_REMOVE=rm -f $(FAKEROOT)$(INSTALLED_CONFILE)
-MODULE_SIMPLE_CLEAN=rm -f ./.ignore_age
-
include ../Simple.Rules
else
+19
View File
@@ -0,0 +1,19 @@
$NetBSD: patch-az,v 1.4 2007/07/09 03:51:33 minskim Exp $
--- modules/pam_userdb/Makefile.orig 2007-07-08 13:43:37.000000000 -0700
+++ modules/pam_userdb/Makefile
@@ -20,9 +20,14 @@ ifeq ($(HAVE_LIBDB),yes)
WHICH_DB=db
MODULE_SIMPLE_EXTRALIBS = -ldb
else
+ifeq ($(HAVE_LIBDB4),yes)
+ WHICH_DB=db4
+ MODULE_SIMPLE_EXTRALIBS = -ldb4
+else
WHICH_DB=none
endif
endif
+endif
ifeq ($(WHICH_DB),none)
+11
View File
@@ -0,0 +1,11 @@
It creates a database from the regular expression rules that it finds
from the config file. Once this database is initialized it can be
used to verify the integrity of the files. It has several message
digest algorithms (md5,sha1,rmd160,tiger,haval,etc.) that are used to
check the integrity of the file. More algorithms can be added with
relative ease. All of the usual file attributes can also be checked
for inconsistencies. It can read databases from older or newer
versions. See the manual pages within the distribution for further
info. There is also a beginning of a manual at
http://www.cs.tut.fi/~rammer/aide/manual.html
+27
View File
@@ -0,0 +1,27 @@
# $NetBSD: Makefile,v 1.35 2013/02/22 19:59:07 shattered Exp $
#
DISTNAME= aide-0.15.1
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=aide/}
MAINTAINER= pettai@NetBSD.org
HOMEPAGE= http://aide.sourceforge.net/
COMMENT= Free intrusion detection system for checking file integrity
LICENSE= artistic
BUILDLINK_API_DEPENDS.mhash?= mhash>=0.8.17
GNU_CONFIGURE= yes
USE_TOOLS+= bison flex gmake
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS" && empty(OS_VERSION:M5.[6-9])
# Since Solaris 10, static linking no longer possible
CONFIGURE_ARGS+= --disable-static
.endif
.include "../../devel/zlib/buildlink3.mk"
.include "../../security/mhash/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+4
View File
@@ -0,0 +1,4 @@
@comment $NetBSD: PLIST,v 1.1 2001/11/01 01:16:28 zuntum Exp $
bin/aide
man/man1/aide.1
man/man5/aide.conf.5
+8
View File
@@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.13 2012/03/12 14:18:44 fhajny Exp $
SHA1 (aide-0.15.1.tar.gz) = c5998c04a223416142323fa1bd18db0936099827
RMD160 (aide-0.15.1.tar.gz) = 80ea88b1c1496bcca57d2d1cdeecdcdfca0fa5cf
Size (aide-0.15.1.tar.gz) = 424970 bytes
SHA1 (patch-ab) = ddfaaf42767ebb6eaab73c33489b7aef19e5b003
SHA1 (patch-ae) = 87c234f8d316117cf766134ca69d6f753c59dd91
SHA1 (patch-af) = 70ac8a100e9d601b7ffcaa9d716742d1d947aca7
+49
View File
@@ -0,0 +1,49 @@
$NetBSD: patch-ab,v 1.5 2012/03/12 14:18:44 fhajny Exp $
* YACC and LEX are passwd as full path.
* static linking is not supported on MacOS X. PR#39058.
* FILE_OFFSET_BITS corrected
--- configure.orig 2010-09-10 17:48:04.000000000 +0000
+++ configure
@@ -4231,10 +4231,6 @@ fi
done
test -n "$YACC" || YACC="yacc"
-if test "x${YACC}" != "xbison -y"; then
- echo "AIDE requires GNU bison"
- exit 5
-fi
for ac_prog in flex lex
@@ -4394,10 +4390,6 @@ fi
rm -f conftest.l $LEX_OUTPUT_ROOT.c
fi
-if test "x${LEX}" != "xflex"; then
- echo "AIDE requires GNU flex"
- exit 5
-fi
for ac_prog in ld
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
@@ -4539,6 +4531,9 @@ if test $ac_cv_c_compiler_gnu = yes; the
## pic_flag=-Kconform_pic
## fi
;;
+ darwin*)
+ LD_STATIC_FLAG=''
+ ;;
*)
## pic_flag='-fPIC'
;;
@@ -6435,7 +6430,7 @@ ac_fn_c_check_func "$LINENO" "lstat64" "
if test "x$ac_cv_func_lstat64" = x""yes; then :
ac_fn_c_check_func "$LINENO" "stat64" "ac_cv_func_stat64"
if test "x$ac_cv_func_stat64" = x""yes; then :
- AIDE_DEFS="$AIDE_DEFS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS"
+ AIDE_DEFS="$AIDE_DEFS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
AIDE_LSTAT_FUNC="lstat64"
compoptionstring="${compoptionstring}WITH_LSTAT64\\n"
AIDE_STAT_FUNC="stat64"
+13
View File
@@ -0,0 +1,13 @@
$NetBSD: patch-ae,v 1.1 2010/08/30 22:30:27 pettai Exp $
--- contrib/gpg2_check.sh.orig 2010-08-31 00:22:49.000000000 +0200
+++ contrib/gpg2_check.sh 2010-08-31 00:23:06.000000000 +0200
@@ -17,7 +17,7 @@
echo ""
gpg --verify aide.db.sig
echo ""
- if [ "$?" == "1" ]; then
+ if [ "$?" = "1" ]; then
echo "************************************************************"
echo "GPG signature FAILED! Your database has been tampered with!"
echo "************************************************************"
+31
View File
@@ -0,0 +1,31 @@
$NetBSD: patch-af,v 1.1 2010/08/30 22:30:27 pettai Exp $
--- contrib/gpg2_update.sh.orig 2010-08-31 00:25:16.000000000 +0200
+++ contrib/gpg2_update.sh 2010-08-31 00:26:27.000000000 +0200
@@ -22,10 +22,10 @@
# copy the old database
if [ -f aide.db ]; then
newfile="aide-`hostname`-`date +%Y%m%d-%H%M%S`.db"
- if [ "${usegpg}" == 1 -a -f aide.db.sig ]; then
+ if [ "${usegpg}" = 1 -a -f aide.db.sig ]; then
# do an integrity check
gpg --verify aide.db.sig
- if [ "$?" == "1" ]; then
+ if [ "$?" = "1" ]; then
echo "************************************************************"
echo "GPG signature FAILED! Your database has been tampered with!"
echo "************************************************************"
@@ -34,11 +34,11 @@
fi
cp -av aide.db ${newfile}
/usr/sbin/aide --update -B "database=file:/var/lib/aide/${newfile}"
- if [ "${usegpg}" == "1" ]; then
+ if [ "${usegpg}" = "1" ]; then
# create the signature file
[[ -f aide.db.sig ]] && rm -f aide.db.sig
gpg --detach-sign aide.db
- if [ "$?" == "1" ]; then
+ if [ "$?" = "1" ]; then
echo "FATAL: Error occurred when creating the signature file!"
exit 1
fi

Some files were not shown because too many files have changed in this diff Show More