gitolite: update to 3.6.13
authorkrant <redacted>
Tue, 6 Feb 2024 09:21:27 +0000 (11:21 +0200)
committerRosen Penev <redacted>
Wed, 7 Feb 2024 21:55:48 +0000 (13:55 -0800)
- Use git for sources since no proper tarball is available
- Switch package URL to HTTPS
- Refresh the patch

Signed-off-by: krant <redacted>
net/gitolite/Makefile
net/gitolite/patches/0100-avoid-ssh-keygen.patch

index 3d66fe6a4cf34748e2229d19c5abc70a8091cbd5..6e2b89f5c82c08e2d422c22e8c3ff9cea30bc41c 100644 (file)
@@ -8,12 +8,13 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=gitolite
-PKG_VERSION:=3.6.11
-PKG_RELEASE:=3
+PKG_VERSION:=3.6.13
+PKG_RELEASE:=1
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_HASH:=2166a61b14de19e605b14f4a13a070fbfd5ecd247b6fd725108f111198a2c121
-PKG_SOURCE_URL:=https://codeload.github.com/sitaramc/gitolite/tar.gz/v$(PKG_VERSION)?
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE_URL:=https://github.com/sitaramc/gitolite.git
+PKG_SOURCE_VERSION:=v$(PKG_VERSION)
+PKG_MIRROR_HASH:=f4ac58bc11fde65ef2c6a07f84af214989324147c4aa117ae1483ba0453e402f
 
 PKG_CPE_ID:=cpe:/a:sitaram_chamarty:gitolite
 
@@ -39,7 +40,7 @@ define Package/gitolite
        +perlbase-utf8 \
 
   TITLE:=Easy administration of git repositories
-  URL:=http://gitolite.com/gitolite
+  URL:=https://gitolite.com/gitolite/
   USERID:=git=382:git=382
 endef
 
index 253e0f9f01e7ee6cc03d6c8da8c014d6b02ed39d..cf8cd5f2fe5dcfbfe333ccff18426b2b9c48399e 100644 (file)
@@ -43,7 +43,7 @@ Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
 +    while ( $pos <= length($keydata) ) {
 +        $partlen = unpack('N',  substr $keydata, $pos, 4) or last;
 +        $data = unpack('s>*',  substr $keydata, $pos + 4, 4) or last;
-+      $pos = $pos + 4 + $partlen;
++    $pos = $pos + 4 + $partlen;
 +        push @keyparts, $data;
 +    }
 +    return ( $algorithm, @keyparts );
@@ -54,18 +54,18 @@ Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
 +# If the file cannot be parsed it will be undef
 +# Returns (restrictions, algorithm, PEMkey, comment)
 +sub ssh_parse_line($) {
-+   my $ssh_line = shift;
-+   my @ssh_parts = split / /, $ssh_line, 5;
-+   if (scalar @ssh_parts < 4)  {
-+      @ssh_parts = ('', @ssh_parts);
-+   }
-+   if (scalar @ssh_parts > 4) {
-+      @ssh_parts = @ssh_parts[0,3]
-+   }
-+   if (scalar @ssh_parts < 4) {
-+      @ssh_parts = undef;
-+   }
-+   return ( @ssh_parts );
++    my $ssh_line = shift;
++    my @ssh_parts = split / /, $ssh_line, 5;
++    if (scalar @ssh_parts < 4)  {
++        @ssh_parts = ('', @ssh_parts);
++    }
++    if (scalar @ssh_parts > 4) {
++        @ssh_parts = @ssh_parts[0,3]
++    }
++    if (scalar @ssh_parts < 4) {
++        @ssh_parts = undef;
++    }
++    return ( @ssh_parts );
 +}
 +
 +# ----------------------------------------------------------------------
@@ -95,7 +95,7 @@ Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
      my $in = shift;
      -f $in or die "file not found: $in\n";
      my $fh;
--    open( $fh, "ssh-keygen -l -f $in |" ) or die "could not fork: $!\n";
+-    open( $fh, "ssh-keygen -l -f $in 2>&1 |" ) or die "could not fork: $!\n";
 +    open( $fh, $in ) or die "could not open $in: $!\n";
      my $output = <$fh>;
      chomp $output;
git clone https://git.99rst.org/PROJECT