[Hackage] #409: Support for creating a static package repo

#409: Support for creating a static package repo ---------------------------------+------------------------------------------ Reporter: mnislaih | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: 1.2.3.0 Severity: normal | Keywords: Difficulty: easy (<4 hours) | Ghcversion: 6.8.3 Platform: | ---------------------------------+------------------------------------------ Usual scenario: Bob has a bunch of packages for personal use he does not want or cannot upload to hackage. All he needs is a public_html folder, his packages in tar.gz files, and a bit of help to set up a private static hackage repo. RubyGems allows this with the ''generate_index'' command, see [http://rambleon.org/2008/08/01/creating-your-own-gem-server-redux/ here]. Since cabal-install supports multiple package sources already, the only thing missing is a command to generate the index and directory structure. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/409 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#409: Support for creating a static package repo ---------------------------------+------------------------------------------ Reporter: mnislaih | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: 1.2.3.0 Severity: normal | Resolution: Keywords: | Difficulty: easy (<4 hours) Ghcversion: 6.8.3 | Platform: ---------------------------------+------------------------------------------ Comment (by mnislaih): I bit the bullet and hacked cabal-install to support this. I extended cabal with a ''server'' command which expects to find the tar.gz files corresponding to packages in the current directory and will create the index file as well as the dir structure. As cabal-install now by default uses the new hackage server directory structure and not the one described in [HackageDB], my patch tries hard to produce the former structure, so to avoid the need to patch the clients too. A patch is attached. Although it is not very smart and will only work in Unix systems, it still could be useful to someone. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/409#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage