diff options
-rw-r--r-- | Makefile | 10 | ||||
-rw-r--r-- | README | 5 | ||||
-rwxr-xr-x | createtorrent | 15 | ||||
-rwxr-xr-x | download-repo.sh | 3 | ||||
-rw-r--r-- | motto | 1 |
5 files changed, 30 insertions, 4 deletions
@@ -20,7 +20,7 @@ PACKAGES="$(shell cat packages.$(ARCH))" kver_FILE=$(WORKDIR)/root-image/etc/mkinitcpio.d/kernel26.kver -all: net-iso core-iso +all: net-iso core-iso torrent # Rules for each type of image core-iso: $(COREname) @@ -82,13 +82,17 @@ $(WORKDIR)/iso/$(INSTALL_DIR)/isomounts: isomounts root-image # Rule for make the [core] repo packages core-pkgs: -# mv core-pkgs $(WORKDIR)/ + if [ -d core-pkgs ] ; then mv core-pkgs $(WORKDIR)/ ; fi ./download-repo.sh core $(WORKDIR)/core-pkgs/src/core/pkg # Clean-up all work clean: - rm -rf $(WORKDIR) $(NETname) $(COREname) + if [ -d work/core-pkgs ] ; then mv work/core-pkgs . ; fi + rm -rf $(WORKDIR) $(NETname) $(COREname) $(NETname).torrent $(COREname).torrent + +torrent: + ./createtorrent $(NETname) $(COREname) .PHONY: all core-iso net-iso @@ -0,0 +1,5 @@ +To create the core and netinstall set of ISOs, run: + # make all + +To create torrent files for them: + $ make torrent diff --git a/createtorrent b/createtorrent new file mode 100755 index 0000000..fccf5f5 --- /dev/null +++ b/createtorrent @@ -0,0 +1,15 @@ +#!/bin/bash + +ARCH=$(uname -m) +MOTTO=$(cat motto) + +for iso in $@; do + if [ -f ${iso} ]; then + mktorrent -c "${MOTTO}" \ + -a http://tracker.openbittorrent.com/announce \ + -a http://tracker.publicbt.com/announce \ + -v \ + -w http://repo.parabolagnulinux.org/isos/${ARCH}/$(basename ${iso}) \ + ${iso} + fi +done diff --git a/download-repo.sh b/download-repo.sh index cd4fd88..fb09f01 100755 --- a/download-repo.sh +++ b/download-repo.sh @@ -39,12 +39,13 @@ fi #Ensure we have core/pkgname format, so we don't get crap from other repos PKGS=$(/usr/bin/pacman -Sl $REPO | cut -d' ' -f1,2 | tr ' ' '/') +PKGS="$PKGS filesystem initscripts kernel26-libre licenses-libre pacman pacman-mirrorlist-libre your-freedom" if [ -n "$PKGS" ]; then baseurl="" cachedir="/var/cache/pacman/pkg/" for url in $(/usr/bin/pacman -Sdp $PKGS | grep '://'); do - baseurl="$(dirname "$url")" #save for later + [[ -z $baseurl ]] && baseurl="$(dirname "$url")" #save for later pkgname="$(basename "$url")" cachedpkg="$cachedir/$pkgname" if [ ! -e "$DEST/$pkgname" ]; then @@ -0,0 +1 @@ +Happy hacking! |