| @@ -1,15 +1,15 @@ | | | @@ -1,15 +1,15 @@ |
1 | #!@SH@ | | 1 | #!@SH@ |
2 | # $NetBSD: pkg-build,v 1.10 2008/01/18 11:36:18 rillig Exp $ | | 2 | # $NetBSD: pkg-build,v 1.11 2008/01/21 12:37:46 tnn Exp $ |
3 | # | | 3 | # |
4 | # Copyright (c) 2007, 2008 Joerg Sonnenberger <joerg@NetBSD.org>. | | 4 | # Copyright (c) 2007, 2008 Joerg Sonnenberger <joerg@NetBSD.org>. |
5 | # All rights reserved. | | 5 | # All rights reserved. |
6 | # | | 6 | # |
7 | # This code was developed as part of Google's Summer of Code 2007 program. | | 7 | # This code was developed as part of Google's Summer of Code 2007 program. |
8 | # | | 8 | # |
9 | # Redistribution and use in source and binary forms, with or without | | 9 | # Redistribution and use in source and binary forms, with or without |
10 | # modification, are permitted provided that the following conditions | | 10 | # modification, are permitted provided that the following conditions |
11 | # are met: | | 11 | # are met: |
12 | # | | 12 | # |
13 | # 1. Redistributions of source code must retain the above copyright | | 13 | # 1. Redistributions of source code must retain the above copyright |
14 | # notice, this list of conditions and the following disclaimer. | | 14 | # notice, this list of conditions and the following disclaimer. |
15 | # 2. Redistributions in binary form must reproduce the above copyright | | 15 | # 2. Redistributions in binary form must reproduce the above copyright |
| @@ -86,27 +86,27 @@ destdir) | | | @@ -86,27 +86,27 @@ destdir) |
86 | run_build=run_su | | 86 | run_build=run_su |
87 | run_install=run_direct | | 87 | run_install=run_direct |
88 | ;; | | 88 | ;; |
89 | *) | | 89 | *) |
90 | run_build=run_direct | | 90 | run_build=run_direct |
91 | run_install=run_direct | | 91 | run_install=run_direct |
92 | ;; | | 92 | ;; |
93 | esac | | 93 | esac |
94 | | | 94 | |
95 | ${pkg_up_to_date_script} ${pkgname} ${dependencies} && exit 0 | | 95 | ${pkg_up_to_date_script} ${pkgname} ${dependencies} && exit 0 |
96 | | | 96 | |
97 | set -e | | 97 | set -e |
98 | | | 98 | |
99 | /usr/pkg_bulk/libexec/pbulk/client-clean | | 99 | @PREFIX@/libexec/pbulk/client-clean |
100 | | | 100 | |
101 | # Create the output directory and clean it up | | 101 | # Create the output directory and clean it up |
102 | mkdir -p ${bulklog}/${pkgname} | | 102 | mkdir -p ${bulklog}/${pkgname} |
103 | rm -f ${bulklog}/${pkgname}/* | | 103 | rm -f ${bulklog}/${pkgname}/* |
104 | | | 104 | |
105 | if [ "$use_destdir" = "user-destdir" ]; then | | 105 | if [ "$use_destdir" = "user-destdir" ]; then |
106 | touch ${bulklog}/${pkgname}/work.log | | 106 | touch ${bulklog}/${pkgname}/work.log |
107 | chown ${unprivileged_user} ${bulklog}/${pkgname}/work.log | | 107 | chown ${unprivileged_user} ${bulklog}/${pkgname}/work.log |
108 | fi | | 108 | fi |
109 | | | 109 | |
110 | # Go to target directory | | 110 | # Go to target directory |
111 | cd ${pkgsrc}/${pkgdir} | | 111 | cd ${pkgsrc}/${pkgdir} |
112 | # Clean build area, just in case | | 112 | # Clean build area, just in case |