CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Bug #581: Users may choose from gz/bz2/xz for the compression mode now.
[pkgutils-cross.git] / pkgmk.in
CommitLineData
9ac667e6
SR
1#!/bin/bash
2#
3# pkgutils
4#
5# Copyright (c) 2000-2005 Per Liden
6fe55c25 6# Copyright (c) 2006-2007 by CRUX team (http://crux.nu)
9ac667e6
SR
7#
8# This program is free software; you can redistribute it and/or modify
9# it under the terms of the GNU General Public License as published by
10# the Free Software Foundation; either version 2 of the License, or
11# (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License
19# along with this program; if not, write to the Free Software
20# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
21# USA.
22#
23
24info() {
25 echo "=======> $1"
26}
27
28warning() {
e55714dd 29 info "WARNING: $1" >&2
9ac667e6
SR
30}
31
32error() {
e55714dd 33 info "ERROR: $1" >&2
9ac667e6
SR
34}
35
36get_filename() {
7b3f9929
JD
37 if [[ $1 =~ ^(http|https|ftp|file)://.*/(.+) ]]; then
38 echo "$PKGMK_SOURCE_DIR/${BASH_REMATCH[2]}"
39 else
40 echo $1
9ac667e6 41 fi
9ac667e6
SR
42}
43
2dee8e17
MH
44get_basename() {
45 local FILE="`echo $1 | sed 's|^.*://.*/||g'`"
46 echo $FILE
47}
48
9ac667e6
SR
49check_pkgfile() {
50 if [ ! "$name" ]; then
51 error "Variable 'name' not specified in $PKGMK_PKGFILE."
52 exit 1
53 elif [ ! "$version" ]; then
54 error "Variable 'version' not specified in $PKGMK_PKGFILE."
55 exit 1
56 elif [ ! "$release" ]; then
57 error "Variable 'release' not specified in $PKGMK_PKGFILE."
58 exit 1
59 elif [ "`type -t build`" != "function" ]; then
60 error "Function 'build' not specified in $PKGMK_PKGFILE."
61 exit 1
62 fi
63}
64
65check_directory() {
66 if [ ! -d $1 ]; then
67 error "Directory '$1' does not exist."
68 exit 1
69 elif [ ! -w $1 ]; then
70 error "Directory '$1' not writable."
71 exit 1
72 elif [ ! -x $1 ] || [ ! -r $1 ]; then
73 error "Directory '$1' not readable."
74 exit 1
75 fi
76}
77
de428c29
JD
78check_file() {
79 if [ -e $1 ] && [ ! -w $1 ]; then
80 error "File '$1' is not writable."
81 exit 1
82 fi
83}
84
9ac667e6
SR
85download_file() {
86 info "Downloading '$1'."
87
88 if [ ! "`type -p wget`" ]; then
89 error "Command 'wget' not found."
90 exit 1
91 fi
92
93 LOCAL_FILENAME=`get_filename $1`
94 LOCAL_FILENAME_PARTIAL="$LOCAL_FILENAME.partial"
2dee8e17
MH
95 DOWNLOAD_OPTS="--passive-ftp --no-directories --tries=3 --waitretry=3 \
96 --directory-prefix=$PKGMK_SOURCE_DIR \
765b5014 97 --output-document=$LOCAL_FILENAME_PARTIAL --no-check-certificate"
9ac667e6
SR
98
99 if [ -f "$LOCAL_FILENAME_PARTIAL" ]; then
100 info "Partial download found, trying to resume"
101 RESUME_CMD="-c"
102 fi
103
2dee8e17
MH
104 error=1
105
106 BASENAME=`get_basename $1`
107 for REPO in ${PKGMK_SOURCE_MIRRORS[@]}; do
108 REPO="`echo $REPO | sed 's|/$||'`"
51c534c2 109 wget $RESUME_CMD $DOWNLOAD_OPTS $PKGMK_WGET_OPTS $REPO/$BASENAME
9ac667e6 110 error=$?
2dee8e17 111 if [ $error == 0 ]; then
9ac667e6
SR
112 break
113 fi
114 done
2dee8e17
MH
115
116 if [ $error != 0 ]; then
117 while true; do
51c534c2 118 wget $RESUME_CMD $DOWNLOAD_OPTS $PKGMK_WGET_OPTS $1
2dee8e17
MH
119 error=$?
120 if [ $error != 0 ] && [ "$RESUME_CMD" ]; then
121 info "Partial download failed, restarting"
122 rm -f "$LOCAL_FILENAME_PARTIAL"
123 RESUME_CMD=""
124 else
125 break
126 fi
127 done
128 fi
9ac667e6
SR
129
130 if [ $error != 0 ]; then
131 error "Downloading '$1' failed."
132 exit 1
133 fi
134
135 mv -f "$LOCAL_FILENAME_PARTIAL" "$LOCAL_FILENAME"
136}
137
138download_source() {
139 local FILE LOCAL_FILENAME
140
141 for FILE in ${source[@]}; do
142 LOCAL_FILENAME=`get_filename $FILE`
143 if [ ! -e $LOCAL_FILENAME ]; then
144 if [ "$LOCAL_FILENAME" = "$FILE" ]; then
145 error "Source file '$LOCAL_FILENAME' not found (can not be downloaded, URL not specified)."
146 exit 1
147 else
148 if [ "$PKGMK_DOWNLOAD" = "yes" ]; then
149 download_file $FILE
150 else
151 error "Source file '$LOCAL_FILENAME' not found (use option -d to download)."
152 exit 1
153 fi
154 fi
155 fi
156 done
157}
158
159unpack_source() {
160 local FILE LOCAL_FILENAME COMMAND
161
162 for FILE in ${source[@]}; do
163 LOCAL_FILENAME=`get_filename $FILE`
164 case $LOCAL_FILENAME in
5228efc2 165 *.tar.gz|*.tar.Z|*.tgz|*.tar.bz2|*.tbz2|*.tar.xz|*.txz|*.tar.lzma|*.zip|*.rpm)
698c42e2 166 COMMAND="bsdtar -p -o -C $SRC -xf $LOCAL_FILENAME" ;;
9ac667e6
SR
167 *)
168 COMMAND="cp $LOCAL_FILENAME $SRC" ;;
169 esac
170
171 echo "$COMMAND"
172
173 $COMMAND
174
175 if [ $? != 0 ]; then
176 if [ "$PKGMK_KEEP_WORK" = "no" ]; then
177 rm -rf $PKGMK_WORK_DIR
178 fi
179 error "Building '$TARGET' failed."
180 exit 1
181 fi
182 done
183}
184
185make_md5sum() {
186 local FILE LOCAL_FILENAMES
187
188 if [ "$source" ]; then
189 for FILE in ${source[@]}; do
190 LOCAL_FILENAMES="$LOCAL_FILENAMES `get_filename $FILE`"
191 done
192
193 md5sum $LOCAL_FILENAMES | sed -e 's| .*/| |' | sort -k 2
194 fi
195}
196
197make_footprint() {
198 pkginfo --footprint $TARGET | \
199 sed "s|\tlib/modules/`uname -r`/|\tlib/modules/<kernel-version>/|g" | \
200 sort -k 3
201}
202
203check_md5sum() {
204 local FILE="$PKGMK_WORK_DIR/.tmp"
205
206 cd $PKGMK_ROOT
207
208 if [ -f $PKGMK_MD5SUM ]; then
209 make_md5sum > $FILE.md5sum
210 sort -k 2 $PKGMK_MD5SUM > $FILE.md5sum.orig
211 diff -w -t -U 0 $FILE.md5sum.orig $FILE.md5sum | \
212 sed '/^@@/d' | \
213 sed '/^+++/d' | \
214 sed '/^---/d' | \
215 sed 's/^+/NEW /g' | \
216 sed 's/^-/MISSING /g' > $FILE.md5sum.diff
217 if [ -s $FILE.md5sum.diff ]; then
218 error "Md5sum mismatch found:"
e55714dd 219 cat $FILE.md5sum.diff >&2
9ac667e6
SR
220
221 if [ "$PKGMK_KEEP_WORK" = "no" ]; then
222 rm -rf $PKGMK_WORK_DIR
223 fi
224
225 if [ "$PKGMK_CHECK_MD5SUM" = "yes" ]; then
226 error "Md5sum not ok."
227 exit 1
228 fi
229
230 error "Building '$TARGET' failed."
231 exit 1
232 fi
233 else
234 if [ "$PKGMK_CHECK_MD5SUM" = "yes" ]; then
235 if [ "$PKGMK_KEEP_WORK" = "no" ]; then
236 rm -rf $PKGMK_WORK_DIR
237 fi
238 info "Md5sum not found."
239 exit 1
240 fi
241
242 warning "Md5sum not found, creating new."
243 make_md5sum > $PKGMK_MD5SUM
244 fi
245
246 if [ "$PKGMK_CHECK_MD5SUM" = "yes" ]; then
247 if [ "$PKGMK_KEEP_WORK" = "no" ]; then
248 rm -rf $PKGMK_WORK_DIR
249 fi
250 info "Md5sum ok."
251 exit 0
252 fi
253}
254
255strip_files() {
256 local FILE FILTER
257
258 cd $PKG
259
260 if [ -f $PKGMK_ROOT/$PKGMK_NOSTRIP ]; then
261 FILTER="grep -v -f $PKGMK_ROOT/$PKGMK_NOSTRIP"
262 else
263 FILTER="cat"
264 fi
265
266 find . -type f -printf "%P\n" | $FILTER | while read FILE; do
b0bbde50
SR
267 case $(file -b "$FILE") in
268 *ELF*executable*not\ stripped)
9ac667e6 269 strip --strip-all "$FILE"
b0bbde50
SR
270 ;;
271 *ELF*shared\ object*not\ stripped)
9ac667e6 272 strip --strip-unneeded "$FILE"
b0bbde50
SR
273 ;;
274 current\ ar\ archive)
9ac667e6 275 strip --strip-debug "$FILE"
b0bbde50 276 esac
9ac667e6
SR
277 done
278}
279
280compress_manpages() {
281 local FILE DIR TARGET
282
283 cd $PKG
284
285 find . -type f -path "*/man/man*/*" | while read FILE; do
286 if [ "$FILE" = "${FILE%%.gz}" ]; then
287 gzip -9 "$FILE"
288 fi
289 done
290
291 find . -type l -path "*/man/man*/*" | while read FILE; do
292 TARGET=`readlink -n "$FILE"`
293 TARGET="${TARGET##*/}"
294 TARGET="${TARGET%%.gz}.gz"
295 rm -f "$FILE"
296 FILE="${FILE%%.gz}.gz"
297 DIR=`dirname "$FILE"`
298
299 if [ -e "$DIR/$TARGET" ]; then
300 ln -sf "$TARGET" "$FILE"
301 fi
302 done
303}
304
305check_footprint() {
306 local FILE="$PKGMK_WORK_DIR/.tmp"
307
308 cd $PKGMK_ROOT
309
310 if [ -f $TARGET ]; then
311 make_footprint > $FILE.footprint
312 if [ -f $PKGMK_FOOTPRINT ]; then
313 sort -k 3 $PKGMK_FOOTPRINT > $FILE.footprint.orig
314 diff -w -t -U 0 $FILE.footprint.orig $FILE.footprint | \
315 sed '/^@@/d' | \
316 sed '/^+++/d' | \
317 sed '/^---/d' | \
318 sed 's/^+/NEW /g' | \
319 sed 's/^-/MISSING /g' > $FILE.footprint.diff
320 if [ -s $FILE.footprint.diff ]; then
321 error "Footprint mismatch found:"
e55714dd 322 cat $FILE.footprint.diff >&2
9ac667e6
SR
323 BUILD_SUCCESSFUL="no"
324 fi
325 else
326 warning "Footprint not found, creating new."
327 mv $FILE.footprint $PKGMK_FOOTPRINT
328 fi
329 else
330 error "Package '$TARGET' was not found."
331 BUILD_SUCCESSFUL="no"
332 fi
333}
334
92dbaab6 335make_work_dir() {
9ac667e6
SR
336 export PKG="$PKGMK_WORK_DIR/pkg"
337 export SRC="$PKGMK_WORK_DIR/src"
338 umask 022
339
340 cd $PKGMK_ROOT
92dbaab6 341 remove_work_dir
9ac667e6 342 mkdir -p $SRC $PKG
92dbaab6 343
9ac667e6
SR
344 if [ "$PKGMK_IGNORE_MD5SUM" = "no" ]; then
345 check_md5sum
346 fi
92dbaab6
JW
347}
348
349remove_work_dir() {
350 rm -rf $PKGMK_WORK_DIR
351}
352
353
354build_package() {
355 local BUILD_SUCCESSFUL="no"
37c478ef 356 local COMPRESSION
92dbaab6 357
de428c29 358 check_file "$TARGET"
92dbaab6 359 make_work_dir
9ac667e6
SR
360
361 if [ "$UID" != "0" ]; then
362 warning "Packages should be built as root."
363 fi
364
365 info "Building '$TARGET'."
366
367 unpack_source
368
369 cd $SRC
370 (set -e -x ; build)
371
372 if [ $? = 0 ]; then
373 if [ "$PKGMK_NO_STRIP" = "no" ]; then
374 strip_files
375 fi
376
377 compress_manpages
378
379 cd $PKG
380 info "Build result:"
37c478ef
JD
381
382 case $PKGMK_COMPRESSION_MODE in
383 gz) COMPRESSION="-z" ;;
384 bz2) COMPRESSION="-j" ;;
385 xz) COMPRESSION="-J" ;;
386 esac
387 bsdtar -c $COMPRESSION -f $TARGET * && bsdtar -t -v -f $TARGET
388
9ac667e6
SR
389 if [ $? = 0 ]; then
390 BUILD_SUCCESSFUL="yes"
391
392 if [ "$PKGMK_IGNORE_FOOTPRINT" = "yes" ]; then
393 warning "Footprint ignored."
394 else
395 check_footprint
396 fi
397 fi
398 fi
399
400 if [ "$PKGMK_KEEP_WORK" = "no" ]; then
92dbaab6 401 remove_work_dir
9ac667e6
SR
402 fi
403
404 if [ "$BUILD_SUCCESSFUL" = "yes" ]; then
405 info "Building '$TARGET' succeeded."
406 else
407 if [ -f $TARGET ]; then
408 touch -r $PKGMK_ROOT/$PKGMK_PKGFILE $TARGET &> /dev/null
409 fi
410 error "Building '$TARGET' failed."
411 exit 1
412 fi
413}
414
415install_package() {
416 local COMMAND
417
418 info "Installing '$TARGET'."
419
420 if [ "$PKGMK_INSTALL" = "install" ]; then
421 COMMAND="pkgadd $TARGET"
422 else
423 COMMAND="pkgadd -u $TARGET"
424 fi
425
426 cd $PKGMK_ROOT
427 echo "$COMMAND"
428 $COMMAND
429
430 if [ $? = 0 ]; then
431 info "Installing '$TARGET' succeeded."
432 else
433 error "Installing '$TARGET' failed."
434 exit 1
435 fi
436}
437
438recursive() {
439 local ARGS FILE DIR
440
441 ARGS=`echo "$@" | sed -e "s/--recursive//g" -e "s/-r//g"`
442
443 for FILE in `find $PKGMK_ROOT -name $PKGMK_PKGFILE | sort`; do
444 DIR="`dirname $FILE`/"
445 if [ -d $DIR ]; then
446 info "Entering directory '$DIR'."
447 (cd $DIR && $PKGMK_COMMAND $ARGS)
448 info "Leaving directory '$DIR'."
449 fi
450 done
451}
452
453clean() {
454 local FILE LOCAL_FILENAME
455
456 if [ -f $TARGET ]; then
457 info "Removing $TARGET"
458 rm -f $TARGET
459 fi
460
461 for FILE in ${source[@]}; do
462 LOCAL_FILENAME=`get_filename $FILE`
463 if [ -e $LOCAL_FILENAME ] && [ "$LOCAL_FILENAME" != "$FILE" ]; then
464 info "Removing $LOCAL_FILENAME"
465 rm -f $LOCAL_FILENAME
466 fi
467 done
468}
469
470update_footprint() {
471 if [ ! -f $TARGET ]; then
472 error "Unable to update footprint. File '$TARGET' not found."
473 exit 1
474 fi
475
de428c29 476 check_file "$PKGMK_FOOTPRINT"
9ac667e6
SR
477 make_footprint > $PKGMK_FOOTPRINT
478 touch $TARGET
479
480 info "Footprint updated."
481}
482
483build_needed() {
484 local FILE RESULT
485
486 RESULT="yes"
487 if [ -f $TARGET ]; then
488 RESULT="no"
489 for FILE in $PKGMK_PKGFILE ${source[@]}; do
490 FILE=`get_filename $FILE`
491 if [ ! -e $FILE ] || [ ! $TARGET -nt $FILE ]; then
492 RESULT="yes"
493 break
494 fi
495 done
496 fi
497
498 echo $RESULT
499}
500
501interrupted() {
502 echo ""
503 error "Interrupted."
504
505 if [ "$PKGMK_KEEP_WORK" = "no" ]; then
506 rm -rf $PKGMK_WORK_DIR
507 fi
508
509 exit 1
510}
511
512print_help() {
513 echo "usage: `basename $PKGMK_COMMAND` [options]"
514 echo "options:"
515 echo " -i, --install build and install package"
516 echo " -u, --upgrade build and install package (as upgrade)"
517 echo " -r, --recursive search for and build packages recursively"
518 echo " -d, --download download missing source file(s)"
519 echo " -do, --download-only do not build, only download missing source file(s)"
92dbaab6 520 echo " -eo, --extract-only do not build, only extract source file(s)"
9ac667e6
SR
521 echo " -utd, --up-to-date do not build, only check if package is up to date"
522 echo " -uf, --update-footprint update footprint using result from last build"
523 echo " -if, --ignore-footprint build package without checking footprint"
524 echo " -um, --update-md5sum update md5sum"
525 echo " -im, --ignore-md5sum build package without checking md5sum"
526 echo " -cm, --check-md5sum do not build, only check md5sum"
527 echo " -ns, --no-strip do not strip executable binaries or libraries"
528 echo " -f, --force build package even if it appears to be up to date"
529 echo " -c, --clean remove package and downloaded files"
530 echo " -kw, --keep-work keep temporary working directory"
531 echo " -cf, --config-file <file> use alternative configuration file"
532 echo " -v, --version print version and exit "
533 echo " -h, --help print help and exit"
534}
535
536parse_options() {
537 while [ "$1" ]; do
538 case $1 in
539 -i|--install)
540 PKGMK_INSTALL="install" ;;
541 -u|--upgrade)
542 PKGMK_INSTALL="upgrade" ;;
543 -r|--recursive)
544 PKGMK_RECURSIVE="yes" ;;
545 -d|--download)
546 PKGMK_DOWNLOAD="yes" ;;
547 -do|--download-only)
548 PKGMK_DOWNLOAD="yes"
549 PKGMK_DOWNLOAD_ONLY="yes" ;;
92dbaab6
JW
550 -eo|--extract-only)
551 PKGMK_EXTRACT_ONLY="yes" ;;
9ac667e6
SR
552 -utd|--up-to-date)
553 PKGMK_UP_TO_DATE="yes" ;;
554 -uf|--update-footprint)
555 PKGMK_UPDATE_FOOTPRINT="yes" ;;
556 -if|--ignore-footprint)
557 PKGMK_IGNORE_FOOTPRINT="yes" ;;
558 -um|--update-md5sum)
559 PKGMK_UPDATE_MD5SUM="yes" ;;
560 -im|--ignore-md5sum)
561 PKGMK_IGNORE_MD5SUM="yes" ;;
562 -cm|--check-md5sum)
563 PKGMK_CHECK_MD5SUM="yes" ;;
564 -ns|--no-strip)
565 PKGMK_NO_STRIP="yes" ;;
566 -f|--force)
567 PKGMK_FORCE="yes" ;;
568 -c|--clean)
569 PKGMK_CLEAN="yes" ;;
570 -kw|--keep-work)
571 PKGMK_KEEP_WORK="yes" ;;
572 -cf|--config-file)
573 if [ ! "$2" ]; then
574 echo "`basename $PKGMK_COMMAND`: option $1 requires an argument"
575 exit 1
576 fi
577 PKGMK_CONFFILE="$2"
578 shift ;;
579 -v|--version)
580 echo "`basename $PKGMK_COMMAND` (pkgutils) $PKGMK_VERSION"
581 exit 0 ;;
582 -h|--help)
583 print_help
584 exit 0 ;;
585 *)
586 echo "`basename $PKGMK_COMMAND`: invalid option $1"
587 exit 1 ;;
588 esac
589 shift
590 done
591}
592
593main() {
594 local FILE TARGET
595
596 parse_options "$@"
597
598 if [ "$PKGMK_RECURSIVE" = "yes" ]; then
599 recursive "$@"
600 exit 0
601 fi
602
603 for FILE in $PKGMK_PKGFILE $PKGMK_CONFFILE; do
604 if [ ! -f $FILE ]; then
605 error "File '$FILE' not found."
606 exit 1
607 fi
608 . $FILE
609 done
610
611 check_directory "$PKGMK_SOURCE_DIR"
612 check_directory "$PKGMK_PACKAGE_DIR"
613 check_directory "`dirname $PKGMK_WORK_DIR`"
614
615 check_pkgfile
37c478ef
JD
616
617 case $PKGMK_COMPRESSION_MODE in
618 gz|bz2|xz)
619 TARGET="$PKGMK_PACKAGE_DIR/$name#$version-$release.pkg.tar.$PKGMK_COMPRESSION_MODE"
620 ;;
621 *)
622 error "Compression mode '$PKGMK_COMPRESSION_MODE' not supported"
623 exit 1
624 ;;
625 esac
626
9ac667e6
SR
627 if [ "$PKGMK_CLEAN" = "yes" ]; then
628 clean
629 exit 0
630 fi
631
632 if [ "$PKGMK_UPDATE_FOOTPRINT" = "yes" ]; then
633 update_footprint
634 exit 0
635 fi
636
637 if [ "$PKGMK_UPDATE_MD5SUM" = "yes" ]; then
638 download_source
de428c29 639 check_file "$PKGMK_MD5SUM"
9ac667e6
SR
640 make_md5sum > $PKGMK_MD5SUM
641 info "Md5sum updated."
642 exit 0
643 fi
644
645 if [ "$PKGMK_DOWNLOAD_ONLY" = "yes" ]; then
646 download_source
647 exit 0
648 fi
649
92dbaab6
JW
650 if [ "$PKGMK_EXTRACT_ONLY" = "yes" ]; then
651 download_source
652 make_work_dir
653 info "Extracting sources of package '$name-$version'."
654 unpack_source
655 exit 0
656 fi
657
9ac667e6
SR
658 if [ "$PKGMK_UP_TO_DATE" = "yes" ]; then
659 if [ "`build_needed`" = "yes" ]; then
660 info "Package '$TARGET' is not up to date."
661 else
662 info "Package '$TARGET' is up to date."
663 fi
664 exit 0
665 fi
666
667 if [ "`build_needed`" = "no" ] && [ "$PKGMK_FORCE" = "no" ] && [ "$PKGMK_CHECK_MD5SUM" = "no" ]; then
668 info "Package '$TARGET' is up to date."
669 else
670 download_source
671 build_package
672 fi
673
674 if [ "$PKGMK_INSTALL" != "no" ]; then
675 install_package
676 fi
677
678 exit 0
679}
680
681trap "interrupted" SIGHUP SIGINT SIGQUIT SIGTERM
682
683export LC_ALL=POSIX
684
685readonly PKGMK_VERSION="#VERSION#"
686readonly PKGMK_COMMAND="$0"
687readonly PKGMK_ROOT="$PWD"
688
689PKGMK_CONFFILE="/etc/pkgmk.conf"
690PKGMK_PKGFILE="Pkgfile"
691PKGMK_FOOTPRINT=".footprint"
692PKGMK_MD5SUM=".md5sum"
693PKGMK_NOSTRIP=".nostrip"
694
2dee8e17 695PKGMK_SOURCE_MIRRORS=()
9ac667e6
SR
696PKGMK_SOURCE_DIR="$PWD"
697PKGMK_PACKAGE_DIR="$PWD"
698PKGMK_WORK_DIR="$PWD/work"
699
37c478ef
JD
700PKGMK_COMPRESSION_MODE="gz"
701
9ac667e6
SR
702PKGMK_INSTALL="no"
703PKGMK_RECURSIVE="no"
704PKGMK_DOWNLOAD="no"
705PKGMK_DOWNLOAD_ONLY="no"
92dbaab6 706PKGMK_EXTRACT_ONLY="no"
9ac667e6
SR
707PKGMK_UP_TO_DATE="no"
708PKGMK_UPDATE_FOOTPRINT="no"
709PKGMK_IGNORE_FOOTPRINT="no"
710PKGMK_FORCE="no"
711PKGMK_KEEP_WORK="no"
712PKGMK_UPDATE_MD5SUM="no"
713PKGMK_IGNORE_MD5SUM="no"
714PKGMK_CHECK_MD5SUM="no"
715PKGMK_NO_STRIP="no"
716PKGMK_CLEAN="no"
717
718main "$@"
719
720# End of file