https://github.com/neolynx/nubian
nubian - debianize nuget packages
https://github.com/neolynx/nubian
Last synced: about 2 months ago
JSON representation
nubian - debianize nuget packages
- Host: GitHub
- URL: https://github.com/neolynx/nubian
- Owner: neolynx
- License: gpl-2.0
- Created: 2017-01-31T17:02:35.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-18T09:42:15.000Z (over 7 years ago)
- Last Synced: 2025-02-01T12:27:25.297Z (4 months ago)
- Language: Shell
- Homepage:
- Size: 1.29 MB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nubian - debianize nuget packages
##Prerequisites
```
$ sudo apt install nuget devscripts debhelper fakeroot xmlstarlet
```## Debianize a nuget package
```
$ ./nubian package NEventStore 5.2.0
```## Install nupkg
```
$ sudo dpkg -i nupkg-neventstore_5.2.0_all.deb
```## Build project
```
$ cd src/nubian.Demo/
$ make
```## Package info
```
$ dpkg -I nupkg-neventstore_5.2.0_all.deb
new debian package, version 2.0.
size 1227590 bytes: control archive=597 bytes.
525 bytes, 10 lines control
153 bytes, 2 lines md5sums
Package: nupkg-neventstore
Version: 5.2.0
Architecture: all
Maintainer: Some One
Installed-Size: 1235
Section: devel
Priority: optional
Homepage: http://neventstore.org
Description: debianized NEventStore nuget package
NEventStore is a persistence agnostic event sourcing library for .NET. The
primary use is most often associated with CQRS.
The purpose of the EventStore is to represent a series of events as a
stream. Furthermore, it provides hooks whereby any events committed to the
stream can be dispatched to interested parties.$ dpkg -c nupkg-neventstore_5.2.0_all.deb
drwxr-xr-x root/root 0 2017-02-11 18:22 ./
drwxr-xr-x root/root 0 2017-02-11 18:22 ./usr/
drwxr-xr-x root/root 0 2017-02-11 18:22 ./usr/share/
drwxr-xr-x root/root 0 2017-02-11 18:22 ./usr/share/nupkg/
-rw-r--r-- root/root 1255657 2017-02-11 18:22 ./usr/share/nupkg/NEventStore.5.2.0.nupkg
drwxr-xr-x root/root 0 2017-02-11 18:22 ./usr/share/doc/
drwxr-xr-x root/root 0 2017-02-11 18:22 ./usr/share/doc/nupkg-neventstore/
-rw-r--r-- root/root 154 2017-02-11 18:22 ./usr/share/doc/nupkg-neventstore/changelog.gz
```## Install nupkg
```
$ sudo dpkg -i nupkg-neventstore_5.2.0_all.deb
Selecting previously unselected package nupkg-neventstore.
(Reading database ... 369523 files and directories currently installed.)
Preparing to unpack nupkg-neventstore_5.2.0_all.deb ...
Unpacking nupkg-neventstore (5.2.0) ...
Setting up nupkg-neventstore (5.2.0) ...
```## Build and package demo app
```
$ cd src/nubian.Demo/
.../nubian.Demo (master)$ debuild -us -us -b
[...]
```
Note: this will remove any local nuget configuration## APT Repository
### Prerequisites
Make sure aptly, gnupg and gnupg-agent are installed.### Creating Repository
```
./aptly-create.sh
```### Adding packages
```
./aptly-add.sh YOUR_DEBIAN_PACKAGES_HERE
```### Starting repository server
```
aptly serve
```### Use repository
As user, add repo key:
```
gpg --export --armor YOUR_EMAIL_ADDRESS | sudo apt-key add -
```As root, run:
```
echo "deb http://localhost:8080/ zesty main" >/etc/apt/sources.list.d/nubian
apt update
```Then install your nuget packages with ```apt install```
## TODO
* Handle nuget dependencies
* Generate run-time packages