Fix issue when building SVR4 packages as a user called "build" : the command names containing "build" get changed to root and the package fails.
| | |
| | | ! |
| | | ! |
| | | ! Copyright 2006-2009 Sun Microsystems, Inc. |
| | | ! Portions Copyright 2011 ForgeRock AS |
| | | ! --> |
| | | |
| | | <project name="SVR4 Packaging" basedir="." default="package-svr4"> |
| | |
| | | <echo file="${svr4.meta.dir}/prototype" append="true">i pkginfo |
| | | i copyright</echo> |
| | | <replaceregexp file="${svr4.meta.dir}/prototype" |
| | | match="${user.name}" |
| | | replace="root" |
| | | match=" ${user.name} " |
| | | replace=" root " |
| | | byline="true"/> |
| | | <replaceregexp file="${svr4.meta.dir}/prototype" |
| | | match="${user.group}" |
| | | replace="sys" |
| | | match=" ${user.group}" |
| | | replace=" sys" |
| | | byline="true"/> |
| | | |
| | | </target> |