Browse Source

Merge pull request #1 from l-n-s/villain

Villain
pull/8/head
l-n-s 7 years ago committed by GitHub
parent
commit
c21d3c6854
  1. 39
      README.md
  2. BIN
      i2pd-logo.png
  3. 9
      snap/i2pd-wrapper
  4. 59
      snap/snapcraft.yaml

39
README.md

@ -1,49 +1,41 @@ @@ -1,49 +1,41 @@
<h1 align="center">
<img src="https://avatars1.githubusercontent.com/u/29598503?v=3&s=256" alt="Project">
<img src="i2pd-logo.png" alt="i2pd">
<br />
[Project]
i2pd - Invisible Internet Protocol Daemon
</h1>
<p align="center"><b>This is the snap for [Project]</b>, <i>"Single-line elevator pitch for your amazing snap"</i>. It works on Ubuntu, Fedora, Debian, and other major Linux
<p align="center"><b>This is the snap for i2pd</b>, <i>"Invisible Internet Protocol Daemon"</i>. It works on Ubuntu, Fedora, Debian, and other major Linux
distributions.</p>
<!-- Uncomment and modify this when you are provided a build status badge
<p align="center">
<a href="https://build.snapcraft.io/user/snapcrafters/fork-and-rename-me"><img src="https://build.snapcraft.io/badge/snapcrafters/fork-and-rename-me.svg" alt="Snap Status"></a>
</p>
-->
## Install
sudo apt install snapd-xdg-open
sudo snap install my-snap-name
sudo snap install i2pd
([Don't have snapd installed?](https://snapcraft.io/docs/core/install))
<!-- Uncomment and modify this when you have a screenshot
![my-snap-name](screenshot.png?raw=true "my-snap-name")
-->
<p align="center">Published for <img src="http://anything.codes/slack-emoji-for-techies/emoji/tux.png" align="top" width="24" /> with :gift_heart: by Snapcrafters</p>
<p align="center">Published for :penguin: with :gift_heart: by Snapcrafters</p>
## Remaining tasks
Snapcrafters ([join us](https://forum.snapcraft.io/t/join-snapcrafters/1325))
are working to land snap install documentation and
the [snapcraft.yaml](https://github.com/snapcrafters/fork-and-rename-me/blob/master/snap/snapcraft.yaml)
upstream so [Project] can authoritatively publish future releases.
upstream so [i2pd](https://github.com/PurpleI2P/i2pd) can authoritatively publish future releases.
- [x] Fork the [Snapcrafters template](https://github.com/snapcrafters/fork-and-rename-me) repository to your own GitHub account.
- If you have already forked the Snapcrafter template to your account and want to create another snap, you'll need to use GitHub's [Import repository](https://github.com/new/import) feature because you can only fork a repository once.
- [ ] Rename the forked Snapcrafters template repository
- [ ] Update logos and references to `[Project]` and `[my-snap-name]`
- [x] Rename the forked Snapcrafters template repository
- [x] Update logos and references to `[Project]` and `[my-snap-name]`
- [ ] Create a snap that runs in `devmode`
- [ ] Register the snap in the store, **using the preferred upstream name**
- [ ] Add a screenshot to this `README.md`
- [x] Add a screenshot to this `README.md`
- [ ] Publish the `devmode` snap in the Snap store edge channel
- [ ] Add install instructions to this `README.md`
- [ ] Update snap store metadata, icons and screenshots
- [ ] Convert the snap to `strict` confinement, or `classic` confinement if it qualifies
- [x] Convert the snap to `strict` confinement, or `classic` confinement if it qualifies
- [ ] Publish the confined snap in the Snap store beta channel
- [ ] Update the install instructions in this `README.md`
- [ ] Post a call for testing on the [Snapcraft Forum](https://forum.snapcraft.io) - [link]()
@ -64,14 +56,5 @@ If you have any questions, [post in the Snapcraft forum](https://forum.snapcraft @@ -64,14 +56,5 @@ If you have any questions, [post in the Snapcraft forum](https://forum.snapcraft
## The Snapcrafters
| [![Your Name](http://gravatar.com/avatar/bc0bced65e963eb5c3a16cab8b004431/?s=128)](https://github.com/yourname/) |
| :---: |
| [Your Name](https://github.com/yourname/) |
[l-n-s](https://github.com/l-n-s/)
<!-- Uncomment and modify this when you have upstream contacts
## Upstream
| [![Upstream Name](http://gravatar.com/avatar/bc0bced65e963eb5c3a16cab8b004431?s=128)](https://github.com/upstreamname) |
| :---: |
| [Upstream Name](https://github.com/upstreamname) |
-->

BIN
i2pd-logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

9
snap/i2pd-wrapper

@ -0,0 +1,9 @@ @@ -0,0 +1,9 @@
#!/bin/sh
if [ ! -d "$SNAP_USER_DATA/.i2pd" ]; then
mkdir $SNAP_USER_DATA/.i2pd/
cp -R $SNAP/certificates $SNAP_USER_DATA/.i2pd/
cp -R $SNAP/i2pd.conf $SNAP_USER_DATA/.i2pd/
fi
exec "$SNAP/bin/i2pd" "$@"

59
snap/snapcraft.yaml

@ -1,15 +1,52 @@ @@ -1,15 +1,52 @@
name: my-snap-name # you probably want to 'snapcraft register <name>'
version: '0.1' # just for humans, typically '1.2+git' or '1.3.2'
summary: Single-line elevator pitch for your amazing snap # 79 char long summary
#
## Easiest way to work with this file, from an updated Ubuntu 16.04 LTS image
## 1. create a non-root user with sudo priv and perform following steps as non-root
## 2. `sudo apt-get update`
## 3. `sudo apt-get install snapcraft python build-essential`
## 4. `snapcraft stage`
## 5. `snapcraft snap`
name: i2pd
version: 2.15.0
summary: Distributed anonymous networking framework
description: |
This is my-snap's description. You have a paragraph or two to tell the
most important story about your snap. Keep it under 100 words though,
we live in tweetspace and your description wants to look good in the snap
store.
i2pd (I2P Daemon) is a full-featured C++ implementation of I2P client.
I2P (Invisible Internet Protocol) is a universal anonymous network layer.
All communications over I2P are anonymous and end-to-end encrypted,
participants don't reveal their real IP addresses.
grade: devel
confinement: strict
confinement: devmode # use 'strict' once you have the right plugs and slots
apps:
i2pd:
command: i2pd-wrapper
daemon: simple
plugs: [network,network-bind]
parts:
my-part:
# See 'snapcraft plugins'
plugin: nil
i2pd:
source: https://github.com/PurpleI2P/i2pd.git
source-type: git
source-tag: 2.15.0
plugin: make
build-packages:
- build-essential
- libboost-date-time-dev
- libboost-filesystem-dev
- libboost-program-options-dev
- libboost-system-dev
- libssl-dev
- zlib1g-dev
- libminiupnpc-dev
artifacts:
- i2pd
- contrib/certificates
- contrib/i2pd.conf
organize:
i2pd: bin/
contrib/*: .
wrapper:
plugin: dump
source: snap/
stage: [i2pd-wrapper]

Loading…
Cancel
Save