components/samba/samba36/samba36.p5m
changeset 4463 0f8d88e8430f
parent 4433 d35242d8330c
child 5050 95320569c80b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/samba/samba36/samba36.p5m	Wed Jun 10 16:30:48 2015 -0700
@@ -0,0 +1,147 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
+#
+
+
+# samba36 is not yet in pkg-repo ...can be removed after push
+<transform file path=usr/lib/samba/samba36/.+ -> default pkg.depend.bypass-generate .*>
+<transform file path=usr/lib/samba/samba36/.+ -> default pkg.linted.userland.action001.3 true>
+
+<include ../samba/samba.p5m.common>
+
+# "samba36.proto-objects"-file is created using the command:
+#   gmake sample-manifest METADATA_TEMPLATE=
+# as a "sample-manifest"-file (in build/ dir) and is pkgfmt clean
+# (because there is no template header placed on beginning of file)
+# All individual actions and attribute settings on pkg objects should
+# be performed by "<transform ...> (pkgmogrify) actions.
+<include samba36.proto-objects>
+
+# pkg attributes
+set name=pkg.fmri \
+    value=pkg:/service/network/samba/samba36@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
+set name=pkg.summary value="samba - A Windows SMB/CIFS fileserver for UNIX"
+
+# temporary, until the mediated links are replaced in the reference repo
+set name=pkg.linted.pkglint.dupaction001.1 value=true
+set name=pkg.linted.pkglint.dupaction010.1 value=true
+set name=pkg.linted.pkglint.dupaction010.2 value=true
+#
+set name=com.oracle.info.description value="Samba, a SMB/CIFS fileserver"
+set name=com.oracle.info.tpno value=$(TPNO)
+set name=info.classification \
+    value="org.opensolaris.category.2008:System/File System"
+set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
+set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
+set name=org.opensolaris.arc-caseid value=PSARC/2015/008
+set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
+
+# samba confdir
+dir  path=etc/samba/private mode=500
+
+
+# bin (mediated links)
+link path=usr/bin/eventlogadm target=../lib/samba/samba36/bin/eventlogadm
+link path=usr/bin/net target=../lib/samba/samba36/bin/net
+link path=usr/bin/nmblookup target=../lib/samba/samba36/bin/nmblookup
+link path=usr/bin/ntlm_auth target=../lib/samba/samba36/bin/ntlm_auth
+link path=usr/bin/pdbedit target=../lib/samba/samba36/bin/pdbedit
+link path=usr/bin/rpcclient target=../lib/samba/samba36/bin/rpcclient
+link path=usr/bin/sharesec target=../lib/samba/samba36/bin/sharesec
+link path=usr/bin/smbcacls target=../lib/samba/samba36/bin/smbcacls
+link path=usr/bin/smbclient target=../lib/samba/samba36/bin/smbclient
+link path=usr/bin/smbcontrol target=../lib/samba/samba36/bin/smbcontrol
+link path=usr/bin/smbcquotas target=../lib/samba/samba36/bin/smbcquotas
+link path=usr/bin/smbget target=../lib/samba/samba36/bin/smbget
+link path=usr/bin/smbpasswd target=../lib/samba/samba36/bin/smbpasswd
+link path=usr/bin/smbprofiles target=../lib/samba/samba36/bin/profiles
+link path=usr/bin/smbspool target=../lib/samba/samba36/bin/smbspool
+link path=usr/bin/smbstatus target=../lib/samba/samba36/bin/smbstatus
+link path=usr/bin/smbta-util target=../lib/samba/samba36/bin/smbta-util
+link path=usr/bin/smbtar target=../lib/samba/samba36/bin/smbtar
+link path=usr/bin/smbtree target=../lib/samba/samba36/bin/smbtree
+link path=usr/bin/tdbbackup target=../lib/samba/samba36/bin/tdbbackup
+link path=usr/bin/tdbdump target=../lib/samba/samba36/bin/tdbdump
+link path=usr/bin/tdbrestore target=../lib/samba/samba36/bin/tdbrestore
+link path=usr/bin/tdbtool target=../lib/samba/samba36/bin/tdbtool
+link path=usr/bin/testparm target=../lib/samba/samba36/bin/testparm
+link path=usr/bin/wbinfo target=../lib/samba/samba36/bin/wbinfo
+
+# nss_libs
+link path=usr/lib/$(MACH64)/nss_winbind.so.1 \
+    target=../samba/samba36/lib/$(MACH64)/nss_winbind.so
+link path=usr/lib/nss_winbind.so.1 target=./samba/samba36/lib/nss_winbind.so
+
+# nss_libs files Samba 3.x do not deliver it by gmake install
+# note: nss_wins.so is discontinued in Samba4
+file build/$(MACH64)/nsswitch/libnss_winbind.so \
+    path=usr/lib/samba/samba36/lib/$(MACH64)/nss_winbind.so
+file build/$(MACH64)/nsswitch/libnss_wins.so \
+    path=usr/lib/samba/samba36/lib/$(MACH64)/nss_wins.so
+file build/$(MACH32)/nsswitch/libnss_winbind.so \
+    path=usr/lib/samba/samba36/lib/nss_winbind.so
+file build/$(MACH32)/nsswitch/libnss_wins.so \
+    path=usr/lib/samba/samba36/lib/nss_wins.so
+
+# PAM-libs
+link path=usr/lib/security/$(MACH64)/pam_smbpass.so \
+    target=../../samba/samba36/lib/$(MACH64)/security/pam_smbpass.so
+link path=usr/lib/security/$(MACH64)/pam_smbpass.so.1 \
+    target=../../samba/samba36/lib/$(MACH64)/security/pam_smbpass.so
+link path=usr/lib/security/$(MACH64)/pam_winbind.so \
+    target=../../samba/samba36/lib/$(MACH64)/security/pam_winbind.so
+link path=usr/lib/security/$(MACH64)/pam_winbind.so.1 \
+    target=../../samba/samba36/lib/$(MACH64)/security/pam_winbind.so
+link path=usr/lib/security/pam_smbpass.so \
+    target=../samba/samba36/lib/security/pam_smbpass.so
+link path=usr/lib/security/pam_smbpass.so.1 \
+    target=../samba/samba36/lib/security/pam_smbpass.so
+link path=usr/lib/security/pam_winbind.so \
+    target=../samba/samba36/lib/security/pam_winbind.so
+link path=usr/lib/security/pam_winbind.so.1 \
+    target=../samba/samba36/lib/security/pam_winbind.so
+
+# sbin
+# (note) SWAT is definitivelly gone in Samba4.
+link path=usr/sbin/nmbd target=../lib/samba/samba36/sbin/nmbd
+link path=usr/sbin/smbd target=../lib/samba/samba36/sbin/smbd
+link path=usr/sbin/winbindd target=../lib/samba/samba36/sbin/winbindd
+
+# dirs not created by install
+dir  path=var/samba/locks
+dir  path=var/samba/log
+dir  path=var/spool/samba mode=1777
+
+#
+legacy pkg=SUNWsmbar \
+    desc="samba - A Windows SMB/CIFS fileserver for UNIX (Root)" \
+    name="samba - A Windows SMB/CIFS fileserver for UNIX (Root)"
+legacy pkg=SUNWsmbau \
+    desc="samba - A Windows SMB/CIFS fileserver for UNIX (Usr)" \
+    name="samba - A Windows SMB/CIFS fileserver for UNIX (Usr)"
+license samba36.license license=GPLv3
+
+# dependency can be removed later (after initial push)
+depend type=require fmri=library/samba/libsmbclient
+
+# Samba can be used in Asian multibyte language envs. so we need this
+depend type=require fmri=pkg:/system/library/iconv