16555453 proftpd build fails if LOGNAME not in environment s11-update
authorTomas Klacko <tomas.klacko@oracle.com>
Fri, 02 Aug 2013 11:53:04 -0700
branchs11-update
changeset 2712 45c3ae29a200
parent 2711 4a08c47c8ec3
child 2713 628886ae1684
16555453 proftpd build fails if LOGNAME not in environment 16940924 svc:/network/ftp:default shouldn't depend explicitly on network/physical
components/proftpd/Makefile
components/proftpd/ftp.xml
--- a/components/proftpd/Makefile	Fri Aug 02 03:38:53 2013 -0700
+++ b/components/proftpd/Makefile	Fri Aug 02 11:53:04 2013 -0700
@@ -59,7 +59,7 @@
 CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS) -I/usr/include/kerberosv5 -DHAVE_KRB5_H=1 -DKRB5_DLLIMP= -DHAVE__GETGRPSBYMEMBER"
 # Force immediate binding because of chroot().
 CONFIGURE_OPTIONS +=	LDFLAGS="-z guidance=nolazyload -z nolazyload -lbsm"
-CONFIGURE_OPTIONS +=	install_user=$(LOGNAME)
+CONFIGURE_OPTIONS +=	install_user=`id -nu`
 CONFIGURE_OPTIONS +=	install_group=`groups | cut -f 1 -d ' '`
 CONFIGURE_OPTIONS +=	--sysconfdir=$(ETCDIR)
 CONFIGURE_OPTIONS +=	--localstatedir=/var/run
--- a/components/proftpd/ftp.xml	Fri Aug 02 03:38:53 2013 -0700
+++ b/components/proftpd/ftp.xml	Fri Aug 02 11:53:04 2013 -0700
@@ -1,6 +1,6 @@
 <?xml version="1.0"?>
 <!--
- Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+ Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
 
  CDDL HEADER START
 
@@ -35,19 +35,14 @@
 
 	<single_instance/>
 
-	<dependency name='net-loopback' grouping='require_any'
-			restart_on='none' type='service'>
-		<service_fmri value='svc:/network/loopback' />
-	</dependency>
-
 	<dependency name='net-service' grouping='require_all'
 			restart_on='none' type='service'>
 		<service_fmri value='svc:/network/service'/>
 	</dependency>
 
-	<dependency name='net-physical' grouping='require_all'
+	<dependency name='network' grouping='require_all'
 			restart_on='none' type='service'>
-		<service_fmri value='svc:/network/physical' />
+		<service_fmri value='svc:/milestone/network'/>
 	</dependency>
 
 	<dependency name='filesystem-local' grouping='require_all'