From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16127 invoked by alias); 11 Dec 2016 17:35:44 -0000 Mailing-List: contact cygwin-apps-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cygwin-apps-cvs-owner@sourceware.org Received: (qmail 16104 invoked by uid 9795); 11 Dec 2016 17:35:43 -0000 Date: Sun, 11 Dec 2016 17:35:00 -0000 Message-ID: <20161211173543.16073.qmail@sourceware.org> From: jturney@sourceware.org To: cygwin-apps-cvs@sourceware.org Subject: [cygwin-apps htdocs - The cygwin-apps website files] branch master, updated. cfac34e27dfcf9d22923a6c55c304983a8bfba04 X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 0dbb5eac037fd4d0cc627403ce67a35c17bf405b X-Git-Newrev: cfac34e27dfcf9d22923a6c55c304983a8bfba04 X-SW-Source: 2016-q4/txt/msg00012.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/apps-htdocs.git;h=cfac34e27dfcf9d22923a6c55c304983a8bfba04 commit cfac34e27dfcf9d22923a6c55c304983a8bfba04 Author: Jon Turney Date: Sun Dec 11 17:09:50 2016 +0000 Remove package-server.html, moved to main cygwin website Also remove links from navigation and add a redirect Diff: --- .htaccess | 1 + index.html | 1 - package-server.html | 172 --------------------------------------------------- package-upload.html | 1 - setup-head.ini.html | 1 - setup.html | 3 +- 6 files changed, 2 insertions(+), 177 deletions(-) diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..767184a --- /dev/null +++ b/.htaccess @@ -0,0 +1 @@ +Redirect /package-server.html https://cygwin.com/package-server.html diff --git a/index.html b/index.html index 107db41..b3e3e36 100644 --- a/index.html +++ b/index.html @@ -47,7 +47,6 @@ setup.exe cygwin.com
diff --git a/package-server.html b/package-server.html deleted file mode 100644 index b81847e..0000000 --- a/package-server.html +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - -The Cygwin setup.exe Package Server - - - - - -
-

-This page documents how to create a server download tree that Cygwin's -setup.exe understands, including the genini script that -creates setup.ini files. Please note that the instructions on this -page work at the present time, but may change in the future. They are provided -on a strictly as-is basis. You can download genini from the -Cygwin-apps -CVS. -

- -

-They should be useful for creating a local mirror with or without custom Cygwin -packages. At the present, we recommend using an Apache web server running on a -Linux distribution such as Debian GNU/Linux -since not all the software works properly on Cygwin. If you want information -on how to install Cygwin, read the Setting Up -Cygwin page. For more information on creating packages that -setup.exe understands, read the -Cygwin Package Contributor's Guide.

- -

Creating a local Cygwin mirror with rsync

- -You do not need to know anything about how the server tree is created if -you just want a copy of an existing tree. Simply follow these steps: -
    -
  1. The first step in creating a local Cygwin mirror is to pick which - existing mirror you will download your packages from. A list of - mirrors can be found here. -
  2. -
  3. - Download the current Cygwin tree. Currently the Cygwin tree is roughly - 80 GB of disk space. If disk space is a problem, you may want to use a - public mirror and only add your own custom packages as described in the - next section. (Substitute your chosen mirror - for example.com and your DocumentRoot for /var/www/): -
    -	rsync -vaz rsync://example.com/pub/cygwin/ /var/www/cygwin
    -	
    -
  4. -
  5. - Test the mirror by pointing a browser at - http://your-server/cygwin/. You should see Cygwin's - setup.exe, the setup.bz2 file, the release - directory, and other items such as the mailing list archives. If your - server is not configured to show directory indexes, you can download - http://your-server/cygwin/setup.exe directly. Run - setup.exe and type the URL of your server. -
  6. -
  7. - Assuming everything works properly, you are almost done. You now have - a current Cygwin mirror, but you need to keep it updated by running the - rsync command periodically. The easiest way to do this is by - putting it in your crontab. -
  8. -
- - -

Creating a custom Cygwin package server

-

NOTE: The instructions below may be out of date. If you are running a -custom package server and can update this documentation, please send it to the -cygwin-apps list. -

-

-The package format that setup.exe understands is well documented -in the Cygwin Package Contributor's -Guide, which mentions that the setup.ini file (compressed to -setup.bz2) is generated by a script. This perl script is named -genini, and it can be downloaded from CVS and used to create a custom -Cygwin package server. If you are planning on creating a custom package -server, we strongly recommend subscribing to the cygwin-apps mailing list -where changes in the setup.ini format and genini are -discussed and announced. -

-
    -
  1. -Download the genini script from the - Cygwin-apps - CVS. -It also requires the Archive::Perl module which you can install via -CPAN or apt-get install libarchive-tar-perl on Debian. -
  2. -
  3. - Create a directory to store your files (i.e., the setup.* files - and the release/ tree). I use /var/www/custom-cygwin/. Put a - copy of setup.exe in that directory (for genini to get - the version number). If you also created a local mirror as described - above, you can link those files: -
    -	#!/bin/sh
    -	mkdir custom-cygwin
    -	cd custom-cygwin
    -	ln -s /var/www/cygwin/setup.exe .
    -	mkdir release
    -	cd release
    -	ln -s /var/www/cygwin/release/* .
    -	
    - That way you can use only your custom mirror to get all the packages. - Note that whenever a new package is uploaded, you will need to link its - directory to your custom mirror. -
  4. -
  5. - Add your custom package to the release tree. You can add an empty - package in the Base categories that depends on several other - packages to automatically install them for anyone using your custom - mirror. For example: -
    -	#!/bin/sh
    -	mkdir custompackage
    -	cd custompackage
    -	touch custompackage-0.0.1-1.tar.bz2
    -	touch custompackage-0.0.1-1-src.tar.bz2
    -	cat > setup.hint << EOF
    -	@ custompackage
    -	sdesc: "My favorite packages"
    -	ldesc: "My favorite packages"
    -	category: Base
    -	requires: bzip2 clear cygwin-doc file less openssh pinfo rxvt wget
    -	EOF
    -	
    -
  6. -
  7. - Run genini to create setup.bz2 for setup.exe: -
    -	genini > setup
    -	bzip2 setup
    -	
    - You will see error messages from genini about non-existant - pacakages if you do not have a full mirror (or if you made an error - in a setup.hint file). -
  8. -
  9. - Test your mirror with setup.exe! -
  10. -
- -
- - - - - - - diff --git a/package-upload.html b/package-upload.html index 74d4788..052d40b 100644 --- a/package-upload.html +++ b/package-upload.html @@ -223,7 +223,6 @@ you aren't listed as an owner there your packages won't be updated. setup.exe cygwin.com
diff --git a/setup-head.ini.html b/setup-head.ini.html index 3c9da48..2ecfc87 100644 --- a/setup-head.ini.html +++ b/setup-head.ini.html @@ -156,7 +156,6 @@ make, automake, autoconf setup.exe cygwin.com
diff --git a/setup.html b/setup.html index e18c91b..3175d4a 100644 --- a/setup.html +++ b/setup.html @@ -30,7 +30,7 @@ Cygwin page. For more information on creating packages that Cygwin Package Contributor's Guide. Instruction on creating a local mirror with or without custom Cygwin packages can be found on the package +href="https://cygwin.com/package-server.html">package server page.

@@ -78,7 +78,6 @@ Setup supports a few command-line arguments. They can be listed using the setup cygwin.com