You are not logged in.

#1 2014-04-15 10:00:28

1uk
Member
Registered: 2013-06-09
Posts: 30

[SOLVED] github.org port 443: Connection refused

Hello,
I am trying to create my first package, but git won't clone.

Here's my PKGBUILD

[luk@silence][~/abs/mydwm]% cat PKGBUILD
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.

# See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
# for more information on packaging from GIT sources.

# Maintainer: Lukas Kitsche <lu.kitsche@gmail.com>
pkgname=dwm-git
pkgver=0
pkgrel=1
pkgdesc="dynamic window manager"
arch=('i686' 'x86_64')
url="dwm.suckless.org"
license=('MIT/X Consortium License')
groups=()
depends=()
optdepends=('tamsyn-font')
makedepends=('git')
provides=('dwm')
conflicts=('dwm')
replaces=('dwm')
backup=()
options=()
install=dwm.install
source=("$pkgname"::'https://github.com/1uk/dwm.git'
        'config.h'
        'dwm.desktop')
noextract=('config.h')
# md5sums=() #generate with 'makepkg -g'

_gitroot='https://github.org/1uk/dwm.git'
_gitname='dwm'

build() {
  cd "$srcdir"
  msg "Connecting to GIT server...."

  #if [[ -d "$_gitname" ]]; then
  #  cd "$_gitname" && git pull origin
  #  msg "The local files are updated."
  #else
  #  git clone "$_gitroot" "$_gitname"
  #fi
  
  # WHY DOES THIS FAIL ?!
  git clone "$_gitroot" "$_gitname"

  msg "GIT checkout done or server timeout"
  msg "Starting build..."

  rm -rf "$srcdir/$_gitname-build"
  git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  cd "$srcdir/$_gitname-build"

  #
  # BUILD HERE
  #

  cp "$srcdir/config.h config.h"
  sed -i 's/CPPFLAGS =/CPPFLAGS +=/g' config.mk
  sed -i 's/^CFLAGS = -g/#CFLAGS += -g/g' config.mk
  sed -i 's/^#CFLAGS = -std/CFLAGS += -std/g' config.mk
  sed -i 's/^LDFLAGS = -g/#LDFLAGS += -g/g' config.mk
  sed -i 's/^#LDFLAGS = -s/LDFLAGS += -s/g' config.mk
  make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
}

package() {
  cd "$srcdir/$_gitname-build"
  make PREFIX=/usr DESTDIR=$pkgdir install
  install -m644 -D LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
  install -m644 -D README $pkgdir/usr/share/doc/$pkgname/README
  install -m644 -D $srcdir/dwm.desktop $pkgdir/usr/share/xsessions/dwm.desktop
}

# vim:set ts=2 sw=2 et:
md5sums=('79397e50c06217dcbce409bb68f2c26c'
         'ec88d1a772550cc505600d679c7813d0'
         '939f403a71b6e85261d09fc3412269ee')

It fails.

[luk@silence][~/abs/mydwm]% makepkg -csi
==> Making package: dwm-git 0-1 (Tue Apr 15 11:55:56 CEST 2014)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found dwm-git
  -> Found config.h
  -> Found dwm.desktop
==> Validating source files with md5sums...
    dwm-git ... Passed
    config.h ... Passed
    dwm.desktop ... Passed
==> Extracting sources...
==> Removing existing pkg/ directory...
==> Starting build()...
==> Connecting to GIT server....
Cloning into 'dwm'...
fatal: unable to access 'https://github.org/1uk/dwm.git/': Failed to connect to github.org port 443: Connection refused
==> ERROR: A failure occurred in build().
    Aborting...

However when I type it directly into the commandline it clones.

[luk@silence][~/abs/mydwm]% git clone 'https://github.com/1uk/dwm.git/' dwm
Cloning into 'dwm'...
remote: Reusing existing pack: 41, done.
remote: Total 41 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (41/41), done.
Checking connectivity... done.

Thank you for your great help!
1uk

Last edited by 1uk (2014-04-15 10:31:31)

Offline

#2 2014-04-15 10:16:55

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] github.org port 443: Connection refused

Your pkgbuild is using github.org not github.com

Offline

#3 2014-04-15 10:23:13

cassava
Member
From: Germany
Registered: 2012-08-01
Posts: 9

Re: [SOLVED] github.org port 443: Connection refused

Hey 1uk,

you do know that there is already a dwm-git package in AUR already, right?
Have a look at it: https://aur.archlinux.org/packages/dwm-git/.

Your download doesn't work because you have github.org, which should be github.com.

Ben

Offline

#4 2014-04-15 10:23:29

1uk
Member
Registered: 2013-06-09
Posts: 30

Re: [SOLVED] github.org port 443: Connection refused

Hahaaa smile
Thank you so much!

Offline

#5 2014-04-15 10:29:56

sekret
Member
Registered: 2013-07-22
Posts: 308

Re: [SOLVED] github.org port 443: Connection refused

It fails, because you don't need to clone anything etc!

This should do it (untested)

edit: Ok, could have mentioned the dwm-git package in the AUR *dugh*

Last edited by sekret (2014-04-15 10:30:44)

Offline

Board footer

Powered by FluxBB