Skip to content

Commit

Permalink
Changed license to MPL-2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ElXreno committed Apr 24, 2020
1 parent c5f26da commit 1c64000
Show file tree
Hide file tree
Showing 7 changed files with 391 additions and 203 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "zswap-cli"
version = "1.0.2"
authors = ["ElXreno <elxreno@gmail.com>"]
license = "MPL-2.0"
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand All @@ -21,4 +22,4 @@ serde = "1.0.105"
serde_derive = "1.0.105"
serde_ini = "0.2.0"
linux-stats = "0.3.1"
libc = "0.2.69"
libc = "0.2.69"
573 changes: 372 additions & 201 deletions LICENSE

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion rpm/zswap-cli.spec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Version: 1.0.2
Release: 1%{?dist}
Summary: Utility for controlling zswap parameters

License: ASL 2.0
License: MPLv2.0
URL: https://github.com/ElXreno/zswap-cli
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
Source1: %{name}.conf
Expand Down
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */

#[macro_use]
extern crate clap;
#[macro_use]
Expand Down
4 changes: 4 additions & 0 deletions src/structs.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */

use crate::utils;
use clap::ArgMatches;
use serde_derive::Deserialize;
Expand Down
4 changes: 4 additions & 0 deletions src/utils.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */

extern crate libc;

use libc::{sysconf, _SC_PAGESIZE};
Expand Down
4 changes: 4 additions & 0 deletions src/utils/constants.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */

pub const CONFIG_PATH: &str = "/etc/zswap-cli.conf";
pub const ZSWAP_BASEPATH: &str = "/sys/module/zswap/parameters";
pub const ZSWAP_DEBUG_BASEPATH: &str = "/sys/kernel/debug/zswap";
Expand Down

0 comments on commit 1c64000

Please sign in to comment.