Skip to content

Commit

Permalink
Add licensing headers and renamed TESTING.MD
Browse files Browse the repository at this point in the history
  • Loading branch information
rudra-iitm committed Jan 21, 2025
1 parent 389f116 commit effbfa2
Show file tree
Hide file tree
Showing 12 changed files with 103 additions and 133 deletions.
126 changes: 0 additions & 126 deletions packaging/TESTING.md

This file was deleted.

10 changes: 10 additions & 0 deletions packaging/rockcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
#
# Rock Configuration File for CUPS OCI Image
#
# Copyright © 2024-2025 by OpenPrinting.
# Copyright © 2024-2025 by Till Kamppeter
# Copyright © 2024-2025 by Rudra Pratap Singh
#
# Licensed under Apache License v2.0. See the file "LICENSE" for more
# information.
#
name: cups
base: [email protected]
version: '2.4.11-3'
Expand Down
11 changes: 10 additions & 1 deletion packaging/scripts/rock/run-cupsd.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
#!/bin/sh

#
# CUPS Server Initialization Script for OCI Image
#
# Copyright © 2024-2025 by OpenPrinting.
# Copyright © 2024-2025 by Till Kamppeter
# Copyright © 2024-2025 by Rudra Pratap Singh
#
# Licensed under Apache License v2.0. See the file "LICENSE" for more
# information.
#
set -eux

# Ensure the lpadmin group exists
Expand Down
12 changes: 11 additions & 1 deletion packaging/scripts/rock/run-dbus.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
#!/bin/sh

#
# Script to initialize system services (users, D-Bus, Avahi) for the CUPS OCI
# container environment.
#
# Copyright © 2024-2025 by OpenPrinting.
# Copyright © 2024-2025 by Till Kamppeter.
# Copyright © 2024-2025 by Rudra Pratap Singh.
#
# Licensed under Apache License v2.0. See the file "LICENSE" for more
# information.
#
set -eux

echo "Creating system users"
Expand Down
9 changes: 8 additions & 1 deletion packaging/scripts/snap/reload-cups-browsed
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#! /bin/sh

#
# Script stop cups-browsed service.
#
# Copyright © 2020 by Till Kamppeter
#
# Licensed under Apache License v2.0. See the file "LICENSE" for more
# information.
#
set -e -x

# Stop cups-browsed to get it automatically restarted
Expand Down
9 changes: 8 additions & 1 deletion packaging/scripts/snap/reload-cupsd
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#! /bin/sh

#
# Script to reload the CUPS daemon (cupsd).
#
# Copyright © 2020 by Till Kamppeter
#
# Licensed under Apache License v2.0. See the file "LICENSE" for more
# information.
#
set -e -x

# Send HUP signal to CUPS
Expand Down
9 changes: 8 additions & 1 deletion packaging/scripts/snap/run-cups-browsed
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#! /bin/sh

#
# Script to initialize and manage the cups-browsed service in a Snap environment.
#
# Copyright © 2020 by Till Kamppeter
#
# Licensed under Apache License v2.0. See the file "LICENSE" for more
# information.
#
set -e -x

mkdir -p $SNAP_DATA/var/log
Expand Down
11 changes: 11 additions & 0 deletions packaging/scripts/snap/run-cupsd
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
#! /bin/sh
#
# This script initializes and manages CUPS services in a Snap environment,
# including setting up required directories, configuring CUPS settings,
# handling proxy mode, and running the CUPS server.
#
# Copyright © 2020 by Till Kamppeter
#
# Licensed under Apache License v2.0. See the file "LICENSE" for more
# information.
#


set -e -x

Expand Down
10 changes: 10 additions & 0 deletions packaging/scripts/snap/run-util
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
#! /bin/sh
#
# This script sets environment variables required for configuring and
# running the CUPS service in a Snap environment, including the locations
# for server root, data, fonts, and configuration files.
#
# Copyright © 2020 by Till Kamppeter
#
# Licensed under Apache License v2.0. See the file "LICENSE" for more
# information.
#

#set -e -x

Expand Down
9 changes: 8 additions & 1 deletion packaging/scripts/snap/stop-cups-browsed
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#! /bin/sh

#
# This script is responsible for safely shutting down the cups-browsed service.
#
# Copyright © 2020 by Till Kamppeter
#
# Licensed under Apache License v2.0. See the file "LICENSE" for more
# information.
#
set -e -x

# Exit if we are already shutting down cups-browsed
Expand Down
11 changes: 10 additions & 1 deletion packaging/scripts/snap/stop-cupsd
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
#! /bin/sh

#
# This script is responsible for safely shutting down the CUPS service
# and associated components (cups-browsed and cups-proxyd) in a Snap
# environment.
#
# Copyright © 2020 by Till Kamppeter
#
# Licensed under Apache License v2.0. See the file "LICENSE" for more
# information.
#
set -e -x

# Exit if we are already shutting down cupsd
Expand Down
9 changes: 9 additions & 0 deletions packaging/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
#
# Snap Configuration File for CUPS Snap
#
# Copyright © 2024-2025 by OpenPrinting.
# Copyright © 2015-2021 by Till Kamppeter
#
# Licensed under Apache License v2.0. See the file "LICENSE" for more
# information.
#
name: cups
base: core22 # The base Snap is the execution environment for this Snap
version: '2.4.11-3'
Expand Down

0 comments on commit effbfa2

Please sign in to comment.