|A clip, from 1997, where Jane Goodall compares the aggressive behavior found in chimpanzees to war (see also: war thermodynamics) and human nature.|
In many cases, the chemical species (in this case chimpanzees), on their own accord, setup and define impermeable boundaries closed to the flow of certain species. A 1983 summary of the chimpanzee war by American anthropologist Helen Fisher is as follows: 
“In the Gombe, wild chimps patrol territories of up to five to eight square miles. Regularly, small groups of males steal along the border of their range, sniffing the ground for the trace of strangers, and climbing trees to peer across neighboring territories. When an unfamiliar chimp, all except childless females, comes too close, they charge, attack, and occasionally severely injure the intruder. In one instance, an older female was attacked so severely by four males that she died five days later of her wounds. In 1970, a chimpanzee war began. A splinter group of seven males and three females with their young split off from their comrades in the north of the reserve and began a group of their own in the south. For a while individuals met at the border to solve their differences by loud calling, hurling branches and mock charges at each other. But in 1974 five males from the original Gombe community began to roam deep into the southern territory. Within three years, they attacked and murdered all of the adult males (except two who died of natural causes) and one old female—extinguishing the splinter enclave and extending their territory to the south.”
Here, the boundaries in question (a) changing, as the story depicts, and (b) often demarcated merely by a natural formation, such as a large rock, river, or irregular tree or land formation.
This multi-year interaction can be analyzed from three different perspectives: (a) pressure-volume boundary work, (b) chemical potential, and (c) a type of multi-year transformation reaction of the form: 
A → B + C
The original troop breaking up chemically into two new factions, after which B (the dominate faction) destroys or consumes C (the weaker faction):
B + C → B
and a new stable end state equilibrium or final state is established.
In the language of Prigogine entropy, the boundary entropy changes would have involved entropy quantifications such as the heat of battle, at the front, territory-infringement murders, etc., and the the internal entropy changes internal work might have involved work related to total species genocide.
Single molecule thermodynamics
In this simple example, in the context of single-molecule thermodynamics, it is not at all "obvious" how the condition for an exact differential, which mathematically defines the extensity property of entropy, translates over to these types of heat measurement quantifications.
1. Thims, Libb. (2007). Human Chemistry (Volume One) (chimpanzee war, pgs. 61-62). Morrisville, NC: LuLu.
2. Fisher, Helen. (1982). The Sex Contract (pgs. 62-63). Quill.