man-db: re-release -2, workaround for spurious %SystemDrive% directory creation master
authorAchim Gratz <Achim.Gratz@Stromeko.DE>
Sat, 27 Nov 2021 17:12:07 +0000 (18:12 +0100)
committerAchim Gratz <Achim.Gratz@Stromeko.DE>
Sat, 27 Nov 2021 17:12:07 +0000 (18:12 +0100)
man-db.cygport

index a17cbe007556503c8e9809a406a5a22705ae2eb5..62e85d76e9529cdb3374fbf8d45a8215773c7550 100644 (file)
@@ -2,7 +2,7 @@
 BUILD_REQUIRES=" flex groff libgdbm-devel libiconv-devel libpipeline-devel lzip po4a zstd"
 NAME="man-db"
 VERSION="2.9.4"
-RELEASE="1"
+RELEASE="2"
 CATEGORY="Base"
 SUMMARY="Man page viewer"
 DESCRIPTION="man-db is an implementation of the standard Unix documentation
@@ -41,59 +41,60 @@ man_db_index_synchronously_CONTENTS="
 "
 
 src_compile() {
-       cd ${S}
-       cygautoreconf
-       cd ${B}
-       cygconf \
-               "--with-sections=1 1p 8 2 3 3p 4 5 6 7 9 0p n" \
-               --disable-cache-owner \
-               --disable-setuid \
-               --with-browser=lynx \
-               --with-pager=less \
-               --with-db=gdbm
-       cygmake
+    cd ${S}
+    cygautoreconf
+    cd ${B}
+    cygconf \
+       "--with-sections=1 1p 8 2 3 3p 4 5 6 7 9 0p n" \
+       --disable-cache-owner \
+       --disable-setuid \
+       --with-browser=lynx \
+       --with-pager=less \
+       --with-db=gdbm
+    cygmake
 }
 
 src_test() {
-       cd ${B}
-       unset MANPATH
-       cygtest
+    cd ${B}
+    unset MANPATH
+    cygtest
 }
 
 src_install() {
-       cd ${B}
-       cyginstall
-       make_etc_defaults /etc/man_db.conf
-       keepdir /var/cache/man
+    cd ${B}
+    cyginstall
+    make_etc_defaults /etc/man_db.conf
+    keepdir /var/cache/man
 
-       dodir /etc/postinstall
-       cat > ${D}/etc/postinstall/zp_${PN}-update-index.dash <<"_EOF"
+    dodir /etc/postinstall
+    cat > ${D}/etc/postinstall/zp_${PN}-update-index.dash <<"_EOF"
 if [ -f /var/cache/man/index.db ] ; then
     if [ -f /var/cache/man/.index-synchronously ] || [ "$1" = "background" ] ; then
         printf "  ManDB index update starting...\n"
         tf=$(/usr/bin/mktemp -p /var/log mandb-index-XXXXXXXX.log)
         exec 3> $tf
         /usr/bin/mv --backup=simple $tf /var/log/mandb-index.log
-        printf "ManDB update started: $(/usr/bin/date -Iseconds)\n" >&3 
+        printf "ManDB update started: $(/usr/bin/date -Iseconds)\n" >&3
         /usr/bin/mandb <&- >&3 2>&1
-        printf "ManDB update finished: $(/usr/bin/date -Iseconds)\n" >&3 
-       exec  3>&-
+        printf "ManDB update finished: $(/usr/bin/date -Iseconds)\n" >&3
+        exec  3>&-
         printf "  ... ManDB index update complete.\n"
     else
         printf "  ManDB index update commencing in background...\n"
-        /usr/bin/cygstart --hide /usr/bin/dash $0 background
+        env -i ProgramData=$(hexdump -n 32 -e '/8 "%02X" 3/8 "/%02X"' /dev/urandom) \
+          /usr/bin/cygstart --hide /usr/bin/dash $0 background
     fi
 else
     printf "  ManDB index not available.\n"
 fi
 _EOF
-       cat > ${D}/etc/postinstall/${PN}-create-index.dash <<_EOF
+    cat > ${D}/etc/postinstall/${PN}-create-index.dash <<_EOF
 [ -e /var/cache/man/index.db ] || exec /usr/bin/touch /var/cache/man/index.db
 _EOF
-       cat > ${D}/etc/postinstall/${PN}-index-synchronously.dash <<_EOF
+    cat > ${D}/etc/postinstall/${PN}-index-synchronously.dash <<_EOF
 exec /usr/bin/touch /var/cache/man/.index-synchronously
 _EOF
-       cat > ${D}/etc/preremove/${PN}-index-synchronously.dash <<_EOF
+    cat > ${D}/etc/preremove/${PN}-index-synchronously.dash <<_EOF
 exec /usr/bin/rm -f /var/cache/man/.index-synchronously
 _EOF
 }
This page took 0.04774 seconds and 5 git commands to generate.