ports auf cd ziehen

andi

Well-Known Member
:confused:
kann mir da bitte mal jemand weiterhelfen?
wie kann ich einen Freebsd Port auf einer Maschine mit schneller
Internetanbindung downloaden, auf CD Brennen und dann auf einer Maschine ohne Internetanbindung installieren?

Wie man ports con CD oder Internet installiert ist mir klar.

Aber wie schaffe ich es wirklich alle Dateien die die entsprechende Software benötigt downzuloaden?
(requiered)
 
make package-recursive
im Portsverzeichnis der schnelle Maschine ausführen. Dann wird der Port mit allen Abhängigkeiten heruntergeladen und ein Paket erstellt. Das kannste auf CD und/oder via NFS freigeben und auf dem langsamen Rechner "pkg_add $Paketname" ausführen.

Ports an sich sind nur die beschreibung wie ein Programm gebaut werden soll, dieses also zu kopieren wäre sinnlos.
 
Aus /usr/ports/Mk/bsd.port.mk:

# Default targets and their behaviors:
#
# fetch - Retrieves ${DISTFILES} (and ${PATCHFILES} if defined)
# into ${DISTDIR} as necessary.
# fetch-list - Show list of files that would be retrieved by fetch.
# fetch-recursive - Retrieves ${DISTFILES} (and ${PATCHFILES} if defined),
# for port and dependencies into ${DISTDIR} as necessary.
# fetch-recursive-list - Show list of files that would be retrieved by
# fetch-recursive.
# fetch-required-list - Show list of files that would be retrieved by
# fetch-required.
# fetch-required - Retrieves ${DISTFILES} (and ${PATCHFILES} if defined),
# for port and dependencies that are not already installed
# into ${DISTDIR}.
# extract - Unpacks ${DISTFILES} into ${WRKDIR}.
# patch - Apply any provided patches to the source.
# configure - Runs either GNU configure, one or more local configure
# scripts or nothing, depending on what's available.
# build - Actually compile the sources.
# install - Install the results of a build.
# reinstall - Install the results of a build, ignoring "already installed"
# flag.
# deinstall - Remove the installation.
# deinstall-all - Remove all installations with the same PKGORIGIN.
# package - Create a package from an _installed_ port.
# describe - Try to generate a one-line description for each port for
# use in INDEX files and the like.
# checkpatch - Do a "patch -C" instead of a "patch". Note that it may
# give incorrect results if multiple patches deal with
# the same file.
# checksum - Use distinfo to ensure that your distfiles are valid.
# checksum-recursive - Run checksum in this port and all dependencies.
# makesum - Generate distinfo (only do this for your own ports!).
# clean - Remove ${WRKDIR} and other temporary files used for building.
# clean-depends - Do a "make clean" for all dependencies.
#

Fuer dich wuerde also make fetch required bzw make fetch recursive in Frage kommen
 
portupgrade

ich glaub dir könnte portupgrade -aF weiterhelfen.

Da werden alle Distfiles gezogen. Und dann kopierst du einfach
/usr/ports/distfiles/
 
Danke schon mal.
Ich habe leider vergessen zu erwähnen, dass es sich bei der schnellen Maschine um ein W Betriebssystem handelt, was ich leider auch nicht ändern kann.
Auch kenne ich die Möglichkeit mir die benötigten Dateien (Pakete) mit ftp von den einschlägigen FTP Servern zu ziehen.
Mir ist es nur irgendwie zu blöd immer erst nachzuschauen welche Pakete eine Software benötigt, und diese dann quasi händisch einzeln downzuloaden.
Kann diese Aufgabe nicht das Skeleton des Ports übernehmen?
So ungefähr: Ich möchte StarOffice installieren, bitte hol mir alle notwendigen Dateien vom Netz und schreibe diese in eine Datei. (und das auf einem w rechner)

Sorry für die nicht ganz fachmännische Ausdruckweise und Danke schon mal
 
das problem hab ich mit freebsd und einem rechner ohne netz auch gemacht. hab des dann anderst gelöst. bin zu netbsd gegangen *g* da gibt es ein 8cd-set mit so ziemlich allen benötigen packages ;)

cu tb.
 
Zurück
Oben